I would like to have a dynamic route like /parent/:id beside other /parent/child.
I tried something like this with no success:
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' }
]
}
];