Closed shailendra4chat closed 6 years ago
I had a similar issue, but I forgot to add the router-outlet on the according parent. Please check from the above referenced plunker example:
@Component({
selector: 'parent',
template: `
<p>This is the parent component!</p>
<router-outlet></router-outlet>
`
})
export class Parent { }
Hope this helps!
I'm submitting a...
Current behavior
I have copied your sample code and implemented in my project, breadcrumb is changing but child component is not loading. Even i checked in console there is not error. please suggest.
Expected behavior
It should load child component.
Minimal reproduction of the problem with instructions
{ path: 'overall', component: OverallPageComponent, data: { breadcrumb: 'Overall'}, children: [ { path: 'project', component: ProjectPageComponent, data: { breadcrumb: 'Project'}} ] }
What is the motivation / use case for changing the behavior?
Environment