Property 'url' does not exist on type 'Event' for Angular2 NavigationEnd Event
this.subscription = this.router.events.subscribe((event:Event) => {
console.log(event.url); ##### Error : Property 'url' does not exist on type 'Event'.
}
Typescript does not recognize properties of the Event type built into the Angular router. Is there something in tsd that I can use to solve this problem? Event is a superclass of NaviagationEnd, NavigationStart classes
+4
source to share