他の/ parent/childの横に/ parent /:idのような動的ルートがありたいと思います。ルーター3.0.0-beta.2の角2:子供の横にワイルドカードを置くことは可能ですか?
ノー成功でこのような何かを試してみました:
export const routes: RouterConfig = [ { path: '', component: HomeComponent }, { path: 'parent', component: ParentComponent,canActivate: [ WebpackAsyncRoute ], children: [ { path: ':id', component: 'ParamComponent' }, { path: 'child', component: 'ChildComponent' }, { path: 'anotherchild', component: 'AnotherChildComponent' } ] } ];
試しましたか?どうしたの? –