I know this question asked many time i have search many SO question but unable to find answer so just posting my question my structure is like below.
const appRoutes: Routes = [
{
path: '',
redirectTo: 'A',
pathMatch: 'full'
},
{
path: 'A',
resolve: {
DATA: ADataResolver,
},
children: [
{
path: '',
redirectTo: 'B',
pathMatch: 'full'
},
{
path: 'B',
loadChildren: './b/b.module#BModule'
}]
}
]
now on app load i want to load path A/B
How will i do it ? I have done above thing and its not working. Any help is appreciated.