In Angular 2 I want to be able to use route.path
to.. get the path.
Inside a components constructor I have:
constructor(private route: Route) {}
So I would like to be able to call:
this.route.path
And for the app bootstrap I got:
bootstrap(AppComponent,
[
ROUTER_PROVIDERS,
]);
But I still get the No Provider for Route! error