Router navigate to child route - Angular 6

后端 未结 6 646
半阙折子戏
半阙折子戏 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:27

    Try:

    this.router.navigate(['child component path'], {relativeTo: this.activatedRoute});
    

    This solved my problem. Happy coding :)

提交回复
热议问题