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