I basically need a translation of this question/answer but for AngularDart (I am on Angular 4 but an answer in 5 would be fine of course). I see subscribe
in the router if I inject it but no success getting parent parameters from that.
Asked
Active
Viewed 53 times
0

Uwe Keim
- 39,551
- 56
- 175
- 291

Dan Pisarski
- 337
- 1
- 2
- 10
-
What version of angular and angular_router (if any) are you using? – Leon Senft Jun 25 '18 at 15:26
-
@LeonSenft currently on Angular 4.0.0+2 and angular_router 1.0.2, but if anything is changed or makes sense to only answer this in 5 (which I think is latest) that is fine by me! – Dan Pisarski Jun 26 '18 at 14:09
-
Sorry I'm not sure how to answer this for angular_router version 1. For version 2 (which is compatible with angular 5+), the router state object you're given on route activation contains all of the parameters for that route and any parent routes: https://pub.dartlang.org/documentation/angular_router/2.0.0-alpha+14/angular_router/OnActivate/onActivate.html – Leon Senft Jun 26 '18 at 17:33
-
Well that sounds useful @LeonSenft let me just try a version upgrade! thanks! – Dan Pisarski Jun 27 '18 at 03:09