libs/nx/src/executors/shared/metadata-utils/__test/my-team-plugin-lib/src/other/module-files/module-without-for-root-method.ts
Properties |
language | |
Type |
string
|
import { InjectionToken, ModuleWithProviders, NgModule } from '@angular/core';
export interface LanguageInterceptorPluginOptions {
language: string;
}
export const LANGUAGE_INTERCEPTOR_PLUGIN_OPTIONS =
new InjectionToken<LanguageInterceptorPluginOptions>('LANGUAGE_INTERCEPTOR_PLUGIN_OPTIONS');
@NgModule()
export class LanguageInterceptorPluginModule {
static NOTforRoot(
options?: LanguageInterceptorPluginOptions
): ModuleWithProviders<LanguageInterceptorPluginModule> {
return {
ngModule: LanguageInterceptorPluginModule,
providers: [{ provide: LANGUAGE_INTERCEPTOR_PLUGIN_OPTIONS, useValue: options }]
};
}
}