I have a route with route children like this:
{
path: 'dashboard',
children: [{
path: '',
canActivate: [CanActivateAuthGuard],
component: DashboardComponent
}, {
path: 'wage-types',
component: WageTypesComponent
}]
}
And in the browser I want to get the activated parent route like
host.com/dashboard/wage-types
How to get the /dashboard
but possible with Angular 2 and not in JavaScript, but also I can accept JavaScript code too but primary Angular 2.