Skip to content

Issue while navigating to the same page with RouterExtensions #1227

Open
@TheOnlyMatt

Description

@TheOnlyMatt

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions