Angular 2 Activated Route

Viewed 5027

Maybe I am missing something?

In an Angular 2 component, I am simply trying to get the full Activated Route.

I do not want to use location.href.

My constructor is as follows:

constructor(private route: ActivatedRoute) {}

And in ngOnInit() I tried finding the value here to no avail:

this.route.data.url
2 Answers
Related