Router navigate to child route - Angular 6

后端 未结 6 645
半阙折子戏
半阙折子戏 2021-01-17 21:54

I\'ve defined my routes like this:

const routes: Routes = [
    { path: \'\', loadChildren: \'./tabs/tabs.module#TabsPageModule\' },
    { path: \'faq\', lo         


        
6条回答
  •  生来不讨喜
    2021-01-17 22:33

    Mention outlets in the routerLink while navigating to particular outlet.

    [routerLink]="['tabs/profile', {outlets: {'profile': ['profile'], 'list': ['none']}}]"
    

    which will eventually generates below route

    http://localhost:4200/tabs/profile/(profile:profile//list:none)
    

提交回复
热议问题