My application uses the Lazy Loading subcomponent strategy. At the top level of the application, I have a custom HTTP provider that intercepts all ajax calls.
providers:[{ provide: Http, useFactory: (backend: XHRBackend, defaultOptions: RequestOptions, cookieService: CookieService) => new CustomHttp(backend, defaultOptions, cookieService), deps: [XHRBackend, RequestOptions, CookieService] }]
My lazy loaded modules do not affect this custom provider. Is there any way to provide them to them? Without duplicating code in the providers
property in the component.module file. Thanks!
Mikki source share