|
|
|
@ -92,6 +92,8 @@ export function appendScript(injector: Injector) {
|
|
|
|
|
],
|
|
|
|
|
})
|
|
|
|
|
export class ThemeSharedModule {
|
|
|
|
|
constructor(private errorHandler: ErrorHandler) {}
|
|
|
|
|
|
|
|
|
|
static forRoot(options = {} as RootParams): ModuleWithProviders {
|
|
|
|
|
return {
|
|
|
|
|
ngModule: ThemeSharedModule,
|
|
|
|
@ -102,12 +104,6 @@ export class ThemeSharedModule {
|
|
|
|
|
deps: [THEME_SHARED_APPEND_CONTENT],
|
|
|
|
|
useFactory: noop,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
provide: APP_INITIALIZER,
|
|
|
|
|
multi: true,
|
|
|
|
|
deps: [ErrorHandler],
|
|
|
|
|
useFactory: noop,
|
|
|
|
|
},
|
|
|
|
|
{ provide: HTTP_ERROR_CONFIG, useValue: options.httpErrorConfig },
|
|
|
|
|
{
|
|
|
|
|
provide: 'HTTP_ERROR_CONFIG',
|
|
|
|
|