Angular RouteReuseStrategy

Av | Blogg | 5 september 2017

Angular 2/4 components are reloaded when the route is changed. To prevent this we can  implement the RouteReuseStrategy in our application to keep the state of the components while we jump around in our routes. First we create our class that implements the RouteResuseStrategy. The first object we declare is “routesToCache” which contains the routes […]

The post Angular RouteReuseStrategy appeared first on DevJunkie.

Till inlägget