#Child route not being deactivated from the router outlet

5 messages · Page 1 of 1 (latest)

torpid sleet
#

It would help if you posted at least the routes configurations.

vapid igloo
#

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
     }
  ]
}
torpid sleet
#

How are you navigating from user to dashboard

restive shell
#

That configuration looks wrong. Why are there two different routes defined for dashboard and settings? As usual, a minimal repro on stackblitz would help.

vapid igloo