We have a large Angular 4
application using lazy loading
along with the preloading strategy of preloadAllModules
. We are using Angular CLI
.
While looking at a memory issue in the Chrome inspector, I noticed that we have multiple module instances everywhere.
If I am reading this right, we have 83 instances of TranslateModule
and HttpModule
etc...
Only thing I can think of is that every lazy loaded
module has its own root which needs to create its own module for that bundle?
Is it possible to get rid of all these instances or is that just how it works?