I am trying to get multiple router-outlet working with different Component on the same path, however, the following code doesn't work.
Routes:
const routes: Routes = [
{ path: 'products', component: ProductComponent},
{ path: 'products', component: ProductHeaderComponent, outlet: 'header-route' },
{ path: 'products', component: ProductFooterComponent, outlet: 'footer-route' }
];
Html:
<router-outlet></router-outlet>//Primary Outlet
<router-outlet name="header-route"></router-outlet>
<router-outlet name="footer-route"></router-outlet>
Primary Outlet works.
Named Outlets, header-route and footer-route does not work.
path: 'products'
as their path. – Narm