Filtro observable Angular 8

import { filter } from 'rxjs/operators';
...
this.router.events.pipe(
   filter( event => event instanceof NavigationEnd)
)
GutoTrosla