I'm trying to rewrite angular's router with rc1 version. I have a feature group which has a child router and define it with a non-terminal route like so:
{ path: '/contacts/...', component: ContactsComponent}
But if i try to navigate like this:
<a [routerLink]="['/contacts']"></a>
It says: "Cannot match any routes. Current segment: 'contacts'. Available routes: ['/dashboard', '/contacts/...']"
If i tried to pass /contacts/... to the router link - it would suddenly start working, but there would be "..." at the end of url as well. So that lead me to the conclusion that maybe the "..." is no longer needed, so i rewrote the route like this:
{ path: '/contacts', component: ContactsComponent}
So now my contacts component gets loaded, but i have the following subroute defined in ContactsComponent:
{ path: '/group/:id', component: GroupComponent }
And a router link:
<a [routerLink]="['./group', {id: group.id}]">{{ group.name }}</a>
Which does not work with the following error:
Cannot match any routes. Current segment: 'group;id=1'. Available routes: ['/', '/group/:id']
I've also tried router links like "/group" and "/contacts/group", none of them work.
Does anyone know how to use the rc1 router for sub-routing with non-terminal paths?