I am facing an issue with my router configuration. Here is the current setup:
const appRoutes: Routes = [
{ path: '', component: LoginComponent},
{ path: 'login', component: LoginComponent },
{ path: 'main', component: MainComponent, canActivate: [AuthGuard], children: [
{ path: 'client', component: ClientComponent, outlet: 'c', children: [
{ path: 'clientinfo', component: ClientInfoComponent, outlet: 'i', children: [
{ path: 'cafe', component: ClientCafeComponent},
{ path: 'membership', component: ClientMembershipComponent },
{ path: 'pt', component: ClientPtComponent }
] }
] },
{ path: 'coach', component: CoachComponent, outlet: 'c'}] },
,
];
I am trying to find a way to load ClientInfoComponent from ClientComponent and ClientMembershipComponent from ClientInfoComponent using [routerLink]. Any suggestions on how to achieve this?
I attempted the following syntax:
[routerLink]="['/main/(c:client)/(i:clientinfo/)']"
but unfortunately, it did not work as expected.
Thank you for your assistance in advance!