0

i have a dashboard component with a sub component called SMS. Now, the SMS component also has it routing list. How can i route under the sms navigation bar under the dashboard component. When i am routing under the sms bar, the navigation bar for the sms should not disappear. Below is the screenshot. In my code, when i click on the quicksms, it routes me to the quicksms page and the navigation bar disappears.

XamarinDevil
  • 873
  • 5
  • 17
  • 38

1 Answers1

0

There is no need for the sms routes. This should work fine!!

dashboard routes

export const DashboardRoutes: Routes =[

  {
    path: 'dashboard',

    component: DashboardComponent,
    children: [

        {path:'messages', component: MessageComponent,canActivate: [AuthGuard]

  children:[
                {
                    path:'transactional', component:quickSmsComponent
                }



        ]


},


    ]

  }
];