I have finished to update my App to Angular 6 (it was in 5.2 version).
I got an error syntax in :
import { Router, ActivatedRoute, NavigationEnd } fr
I don't see in your code if you imported filter
for Rxjs 6:
import { filter } from 'rxjs/operators'; . . . this.router.events.pipe( filter((event:Event) => event instanceof NavigationEnd) ).subscribe(res => console.log(res))