Angular: add a multi provider from lazy feature module
问题 I have an ErrorModule (eager) configured as follows: export const CONFIG = new InjectionToken<ErrorConfig[]>('Module errors configuration.'); @NgModule({ imports: [... ] }) export class ErrorModule { static forRoot(config: ErrorConfig): ModuleWithProviders { return { ngModule: ErrorModule, providers: [ ErrorService, { provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true }, { provide: CONFIG, useValue: config, multi: true } ] }; } static forChild(config: ErrorConfig):