Open
Description
No matter what we do lazy loading or eager loading Angular Module instance never gets destroyed.
When we route across components or use *ngIF Components get destroyed and recreated but its not the same case when we navigate from one module to another.
While lazy loading every module gets loaded dynamically. Also, the instance get created but that instance never gets destroyed.
To check the same I put the breakpoint in Module constructor.
Anybody know the reason for such behavior. I feel it bad because all services registered on those modules get remain forever then too.
I felt like it a bug than a feature request.