I have a dashboard route in my Angular 2 App which has few child routes.
{ path: 'app/:property', component: DashboardComponent, canActivate: [AuthGuardService],
children: [
{ path: 'home', component: HomeComponent }
{ path: 'welcome-slide', component: WelcomeSlideComponent }
{ path: 'analytics', component: AnalyticsComponent }
]
},
Is there a way for me to get a list of the child routes with their path (and maybe also a name) which I can then use them to populate my navigation bar with them ?