Open
Description
Hi,
I am facing an issue when needing to navigate from a component to the same component, with different data.
After some googling I found the NSRouteReuseStrategy class which should do the job, but I have no idea how to use it in my component.
According to my understanding of the Angular’s method, I did this :
constructor(
private nsrrs: NSRouteReuseStrategy,
private routerExtensions : RouterExtensions
){
this.nsrrs.shouldReuseRoute = function(){
return false;
}
}
but this makes my app crash at startup.
What is the correct way for navigating forward / backward between the same component with RouterExtensions ?