I'm trying to navigate to a page using a routerLink after getting an id, which I can get.
The problem is the link is showing up as '/page;id=10/component'. I would like for it to show as '/page/10/component' (not matrix notation - no ';id=' )
In my app.routes.ts:
@RouterConfig = [
{ path: 'page/:id/component', component: MyComponent, data: {id: 'item.id'} }
];
In my page:
<a [routerLink]="['page', {id: item.id}, 'component']">
I'm using the latest Angular 2 Router component (RC3 Beta 2).
Anyone know what I'm doing wrong? Thanks in advance.