typescript - Angular2 Routing with child tree -
i'll start new project in angular2 typescript, there still problems routing:
i have entities this:
- entity id:1
- child id:1
- child id:2
- child id:1
- entity id:2
- child id:1
- child id:2
- child id:3
- child id:1
- entity id:3
- child id:1
- child id:1
now i'm trying code routing this:
@routeconfig([ <br> {path: '/', component: entitylistcomponent}, <br> {path: '/:id/...', name: 'entity', component: entityeditcomponent}, <br> {path: '/:id/children', name: 'childlist', component: childlistcomponent} <br> {path: '/:id/children/:childnumber', name: 'child', component: childeditcomponent}<br> ])
of course, not work :-(.
how can parameters entity children, or how can configure routing?
thanks everybody,i hope you'll understand problem.
Comments
Post a Comment