Is there a way in Angular to get the actual route in the NavigationEnd event instead of just the resolved url which event.url returns? I don't what the resolved params.
export class AppComponent {
constructor(private router: Router) {
this.router.events
.filter(event => event instanceof NavigationEnd)
.subscribe((event: NavigationEnd) => {
// how to get route path? Such as 'someList/:id'
});
}
}