Angular 2路由和组件子

时间:2016-11-18 04:33:24

标签: angular typescript

例如我们有3个组件:TestComponent,TestChildComponent,TestChildChildComponent

in app.module: { path: 'test' , component: TestListComponent },
               { path: 'test/:id', compomnent: TestChildListComponent },
               { path: 'test/:id/:id, component: TestChildChildListComponent }

它们由[routerLink]链接,一切正常,但我如何添加N子组件?

0 个答案:

没有答案