This is a follow up question to this: Angular 2 how does auxiliary routes work in 2.1.0?
I also tried looking at this but it doesn\'t really shed any light on the issue:
This might sound crazy, but why not make dashboard
a child module of admin
?
Try with:
const routes: Routes = [
{
path: '',
component: DashboardComponent,
children: [
{
path: 'brands',
loadChildren: '../pages/+brands/brands.module#BrandsModule'
}
]
}
];
and /admin/(admin:dashboard//brands)