Hi I am using Angular 2 final with router 3.0. I want to filter the events that are emitted from this.router.events
this.router.events
What I want to do :
Angular Update(5.x to 6.x) also comes with update of rxjs from 5.x to 6.x So simply add
import { filter } from 'rxjs/operators';
then
this.router.events.pipe( filter((event:Event) => event instanceof NavigationEnd) ).subscribe(x => console.log(x))
Hope That helps someone