In the latest version of @angular/router
3.0.0-rc.1
The way you get the parameters from a URL/route changed.
Based on this documentation yo
The ActivatedRoute
has getters to access its parent/child route information.
In order to access the first child route from the parent, you would use:
this.route.firstChild.params
If you wanted all the child routes you would use the children
property. This returns an array of ActivatedRoute
this.route.children
If you were in a child route and needed parameters from the parent:
this.route.parent.params