I would like to set the default component for my child component. how to do that? here is my router.ts
{
path: 'cpServices',
component: CpServiceComponent,
children: [
{
path: '',
redirectTo: 'contentPlaceholder',
pathMatch: 'full'
},
{
path: 'contentPlaceholder', //child has outlet
component: ShellContentPlaceholderComponent,
children : [
{
path: 'create', //need as default
component: ShellContentCreatePlaceholderComponent
}
]
}
]
}
Addition Request
<div class="site-wrapper">
<header-nav-shell></header-nav-shell>
<div class="main-section">
<div class="content-left"> //some times need to hide this, how?
<side-nav-shell></side-nav-shell>
</div>
<div class="content-right">
<router-outlet></router-outlet>
</div>
</div>
<app-footer></app-footer>
</div>