Angular2 : get parent router data
问题 I'm creating a component under route /blabla/:id/blabla/:secondid First part of my url "/blabla/:id/..." is managed by my first routing component. Then, a second router manages the second part of url. In my component, I can easy access to my ":secondid" in RouteData. But I wonder how I can access my ":id" from there. Any idea ? 回答1: Pass the first id along with data-binding. 回答2: You must use Injector to get parents data. This is a sample code extrated from here using the feature. this.params