#StackBounty: #angular #hot-module-replacement Hot Module Replacement is reloading whole app instead specific component

Bounty: 50

I created a new angular project and set up HMR as explained here:
https://github.com/angular/angular-cli/wiki/stories-configure-hmr

The project contains main component (parent) which has router-outlet and links to 3 child components which are lazy loaded.

Note: I am also using custom RouteReuseStrategy but it has no effect on the HMR as far as I tested.

No matter what file I am changing – .html or .ts (parent/children) the whole app reloads.

I’ve set up a basic repo which can be found here:
https://github.com/ronfogel/demo-hmr


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.