Guest User

Untitled

a guest
Jun 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. @NgModule({
  2. imports: [RouterModule.forRoot(appRoutes, {onSameUrlNavigation: 'reload'})],
  3. exports: [RouterModule]
  4. })
  5. export class AppRoutingModule {
  6.  
  7. }
  8.  
  9. this.router.onSameUrlNavigation = 'reload';
  10.  
  11. this.router.events
  12. .pipe(filter(event => event instanceof NavigationEnd))
  13. .subscribe(event => {...});
Add Comment
Please, Sign In to add comment