You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this threat angular/angular#20575 HttpClientModule must not be imported by a library. In order to use HTTP_INTERCEPTORS (e.g. for authentication) HttpClientModule has to be imported by the root or a core module. If it is also imported by a library then the HTTP_INTERCEPTORS are not used in lazy loaded modules.
You should rely only on DI in order to get the HttpClient!
This problem prevents me from using your library because it breaks authentication in my lazy loaded modules!
The text was updated successfully, but these errors were encountered:
According to this threat angular/angular#20575 HttpClientModule must not be imported by a library. In order to use HTTP_INTERCEPTORS (e.g. for authentication) HttpClientModule has to be imported by the root or a core module. If it is also imported by a library then the HTTP_INTERCEPTORS are not used in lazy loaded modules.
You should rely only on DI in order to get the HttpClient!
This problem prevents me from using your library because it breaks authentication in my lazy loaded modules!
The text was updated successfully, but these errors were encountered: