我想在其他 /parent/child 旁边有一个像 /parent/:id 这样的动态路由。
我尝试了这样的事情但没有成功:
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' }
]
}
];