I'm trying to change the beta router to the new component router,my project started from the official angular2 seed: https://github.com/angular/angular2-seed
I have these routes configured in the main seed-app.ts file:
@Routes([
{ path: '/home', component: Home},
{ path: '/about', component: About},
{ path: '/github/...', component: RepoBrowser},
])
And these routes in the repo-browser.ts file:
@Routes([
{path: '/:org', component: RepoList},
{path: '/:org/:name', component: RepoDetail },
])
The problem is that I can't link into the repo route, all the normal routes work but this line doesnt:
<a [routerLink]=" ['/github/repo-list', {org: 'angular'}] ">
Github Repos
</a>
I get this error: EXCEPTION: Error: Uncaught (in promise): Cannot match any routes. Current segment: 'github'. Available routes: ['/home', '/about', '/github/...'].
What is the right way to link into a child route with the new component router? (and setting some variables on it like org:angular)
Thanks in advance