Tuesday, 3 September 2019

Angular / ionic Check for same page navigation event

So i have a bottom menu that contains a few buttons that each link to a page using navigate:

this.navigate(TimelinePath, 'back');

Then i have an overlay that checks for the path to test if it should close:

this.routerSubscription = this.router.events.subscribe((val) => {
    if (val instanceof NavigationEnd) {
        this.closeModal();
    }
});

This works however there is an issue.

If i am already standing on the page i try to redirect to this event is not fired. So my quesiton is how can i check for that?



from Angular / ionic Check for same page navigation event

No comments:

Post a Comment