I updated Angular 2 using a router labeled "stripped" and started using the "new" router in rc5 and rc6. However, now I have a problem (running in rc5 and still the same in rc6) where there is a component that should go to the same component but with different parameters (to get other data, i.e. the one that is in the view allready, based on the parameters).
In the devoid router, constructor and AfterViewInit, etc., which is called every time when navigating the component with this.router.navigate. In the new router, the constructor and other things are not called when the same component is called again one after another. Therefore, I assume some kind of βmagicβ / caching is happening. Also note that I send one required parameter and several optional parameters to the component, so the link looks something like this: http: // localhost: 2222 / mycomponent / 1; someotherparam = 123
Is there a way to get a component to get it every time it transitions?
source share