angular / router

The Angular 1 Component Router
MIT License
665 stars 135 forks source link

Router, access to ancestor params #380

Open baio opened 8 years ago

baio commented 8 years ago

Hi

How I could access ancestor routing params. Simple use case Two routes

//parent
  /image/:id
//child 
 /full

Child route display modal (contained in parent component)


{ path: "/image/:id/...", component: ImageFull, as: "ImageFull" },
class ImageComponent ...

{ path: "/image/_", component: Empty, as: "_" }, // <- also I prefer get rid of this one
{ path: "/image/Full", component: Empty, as: "Full" } // <- here I need parent route id
class ImageFullComponent ...

Any ideas how ?