I have three lazy modules say A,B and C. B is a lazy loaded module inside A. I need to navigate to a non-default route of module B from C.
Any possibilities .?
Module A routes
const SEARCH_ROUTES: Routes = [
{ path: 'suggested_trips', component: TripListComponent },
{ path: 'shipper',canActivate: [AccountTypeGuard],data: {roles: ACCOUNT_TYPES.SHPR.value}, loadChildren: './search-shipper/search-shipper.module#SearchShipperModule' } // Module B
];
Module B routes
{
path: '',
component: SearchShipperComponent,
children: [
{
path: 'post', component: SearchShipperNegotiateComponent,
resolve: { tripsData: NegotiateTripsResolveService },
children: [
{ path: NEGOTIATE_STEPS.step1, component: CargoDetailsComponent},
{ path: NEGOTIATE_STEPS.step2, component: CargoMediaComponent },
{ path: NEGOTIATE_STEPS.step3, component: NegotiateComponent },
{ path: '', redirectTo: NEGOTIATE_STEPS.step1, pathMatch: 'full' }
]
}
]
}