Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular2 - Release candidate router not routing to child routes

I am trying to create a simple nested router. This sort of structure worked in the beta builds, but with the launch of the release candidate router I find myself stuck.

http://plnkr.co/edit/nn7KSJpqWuBpkxi1E6tJ

The plunkr above is a contrived version of my scenario. Despite having

@Routes([
  new Route({ path: '/applications/...', component: ApplicationRouter })
])

the router doesn't appear to be recognising the non-terminal route.

Error: Uncaught (in promise): Cannot match any routes. Current segment: 'applications'. Available routes: ['/applications/...'].
like image 786
mattdotdev Avatar asked Dec 19 '22 17:12

mattdotdev


1 Answers

In the new router /... isn't necessary for routes that have child routes.

like image 96
Günter Zöchbauer Avatar answered Dec 29 '22 11:12

Günter Zöchbauer