Let's say I got this route config:
{ path: 'contact', component: ContactComponent, children: [
{ path: ':id', component: ContactDetailComponent },
{ path: 'chat', component: ContactChatComponent, outlet: 'chat' }
]}
If I navigate to
/contact/7
I arrive at contact detail, but how do I get to the aux route from there? That is, what do I need to put in my [routerLink]
?
I know I can easily get there with an absolute URL such as
/contact/(7//chat:chat)
but what if I need to use a relative link here? What form does that have to take? I've tried
[routerLink]="['chat:chat']"
[routerLink]="['//chat:chat']"
[routerLink]="['(7//chat:chat)']"
and so on, but none of those creates the link that actually works (see above).
I'm on RC4 with router 3.0.0-beta2.