Maybe I missed something ??
In the Angular 2 component, I'm just trying to get a fully activated route.
I do not want to use location.href .
my constructor is as follows:
constructor(private route: ActivatedRoute) {}
And in ngOnInit() I tried:
this.route.data.url this.route.snapshot
None of them work.
Any help is generally much appreciated.
source share