angular observable pipe | use code example
Example: observable filter angular 8
import { filter } from 'rxjs/operators';
...
this.router.events.pipe(
filter( event => event instanceof NavigationEnd)
)
import { filter } from 'rxjs/operators';
...
this.router.events.pipe(
filter( event => event instanceof NavigationEnd)
)