Skip to main content
added 93 characters in body
Source Link
Günter Zöchbauer
  • 661.5k
  • 235
  • 2.1k
  • 1.6k
constructor(router:Router) { router.events.subscribe(event:Event => { if(event instanceof NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized } } 

or

constructor(router:Router) { router.events.forEach(event:Event => { 
constructor(router:Router) { router.events.subscribe(event:Event => { if(event instanceof NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized } } 
constructor(router:Router) { router.events.subscribe(event:Event => { if(event instanceof NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized } } 

or

constructor(router:Router) { router.events.forEach(event:Event => { 
added 8 characters in body
Source Link
Günter Zöchbauer
  • 661.5k
  • 235
  • 2.1k
  • 1.6k
constructor(router:Router) { router.events.subscribe(event:Event => { if(event isinstanceof NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized } } 
constructor(router:Router) { router.events.subscribe(event:Event => { if(event is NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized } } 
constructor(router:Router) { router.events.subscribe(event:Event => { if(event instanceof NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized } } 
Source Link
Günter Zöchbauer
  • 661.5k
  • 235
  • 2.1k
  • 1.6k

constructor(router:Router) { router.events.subscribe(event:Event => { if(event is NavigationStart) { } // NavigationEnd // NavigationCancel // NavigationError // RoutesRecognized } }