How to get current route you're in and get's it's data, children and it's parent?say if this is the route structure:const routes: Routes = [ {path: 'home', component: HomeComponent, data: {title: 'Home'}}, { path: 'about', component: AboutComponent, data: {title: 'About'}, children: [ { path: 'company', component: 'CompanyComponent', data: {title: 'Company'} }, { path: 'Hr', component: 'HrComponent', data: {title: 'HR'} }, ... ] }, ... ] Below...
Angular 6 - Get current route and it's data
Continue Reading →