In my constructor, I am currently following this approach:
this.articleSlug = _route.url._value[1].path;
However, TypeScript throws an error:
Property "_value" is not found on type Observable<Params>
Is there a more efficient way to achieve this? I am working with Angular 4 using TypeScript and webpack.
This is specifically for when I utilize _route: ActivatedRoute
in my constructor.