fix: cyclic dependency error

pull/3851/head
mehmet-erim 5 years ago
parent 58b88e2de4
commit dee71ed0bf

@ -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',

Loading…
Cancel
Save