DEV Community

Discussion on: Mastering Angular 8: five things that are good to know to save your time.

Collapse
 
wojtrawi profile image
Wojciech Trawiński

This will not mount component once again!!!
It only ensures that router events will be emitted.
If you navigate to the same route (like from cars/2 to cars/3) it's the RouteReuseStrategy which determines whether a component should be mounted once again.
See here for an example where it's overridden in order to make animations work as expected medium.com/frontend-coach/angular-...