Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @NgModule({
- imports: [RouterModule.forRoot(appRoutes, {onSameUrlNavigation: 'reload'})],
- exports: [RouterModule]
- })
- export class AppRoutingModule {
- }
- this.router.onSameUrlNavigation = 'reload';
- this.router.events
- .pipe(filter(event => event instanceof NavigationEnd))
- .subscribe(event => {...});
Add Comment
Please, Sign In to add comment