Thanks for that. I am just adding the complete code if anyone needs it: import { NgZone } from '@angular/core; import { Router } from '@angular/router';constructor(private router: Router, private _ngZone: NgZone) {`
}
//in one of your methods:
this._ngZone.run(() => {
this.router.navigate(['Dashboard']);
});
Thanks for adding the code correctly, I should have fixed it.
With the new router the navigation parameter should be the route path you have on the RouterConfig, so it’d be something like this.router.navigate(['/dashboard']);