Using Angular 2 beta.0
I have a component structure like so
App (Has RouteConfig)
-> List
| -> ListItem (Want to use RouterLink from here)
This results in an error: Component "List" has no route config.
So I put a RouteConfig on the List
component like so...
@RouteConfig([
{path: '/:id', name: 'Details', component: Detail}
])
But I get an error in angular like Error: Child routes are not allowed for "/list". Use "..." on the parent's route path.
I have tried adding these 3 dots before and after the /list path in that route config... with no success.
The documentation on router is very light and though I know this is supposed to be based off of ui-router, I'm not seeing the parallel to add nested routes
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…