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
from Hot Module Replacement is reloading whole app instead specific component
No comments:
Post a Comment