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 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to