#Child route not being deactivated from the router outlet
5 messages · Page 1 of 1 (latest)
app-routing.module.ts:
{
path: '',
component: AppContainerComponent,
children: [
{
path: 'dashboard',
component: DashboardComponent
}
]
}
dashboard-routing.module.ts:
{
path: '',
component: DashboardComponent,
children: [
{
path: 'settings',
component: SettigsComponent
}
]
}
settings-routing.module.ts:
{
path: '',
component: SettigsComponent,
children: [
{
path: 'user',
component: UserSettigsComponent
}
]
}
How are you navigating from user to dashboard
That configuration looks wrong. Why are there two different routes defined for dashboard and settings? As usual, a minimal repro on stackblitz would help.
through a button at my navbar that navigates to /dashboard