Angular Router
Victor Savkin
28416

Is there a way to pass NavigationExtras into the [routerLink] directive? Specifically I need to set ‘relativeTo: route.parent’. I know I can use router.navigate(), but then I lose the functionality of the [routerLinkActive] directive.

It seems like just using ‘../’ should do the trick, but it doesn’t. I’ve basically got a master-detail list where both master and detail are auxiliary routes (using named router-outlets). I have routerLinks in the master outlet that need to change the route in the detail outlet.

I could put together a plunkr if necessary…

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.