DEV Community

Discussion on: Angular: When HttpInterceptor doesn’t work with lazy loaded modules

Collapse
villanuevand profile image
Andrés Villanueva • Edited on

Hi Abou,

Great explanation about the problem. This post and the comments bellow help me a lot to solve the problem.

Also I learned about the @Optional and @SkipSelf Decorators
In my cases I got interceptors in CoreModule.

I just moved the HttpClientModule to the CoreModule and removed form other Lazy loaded modules and it works pretty well.