I am seeking guidance on how to access second-level parent routes in Angular. For instance, how can I retrieve the componentId within the AttributeListComponent when using the following nested routes:
const routes: Routes = [
{path: '', redirectTo: '/components', pathMatch: 'full'},
{path: 'components', component: SideNavComponent,
children: [
{path: ':componentId', component: ComponentTabComponent, children: [
{path: '', redirectTo: 'entities', pathMatch: 'full'},
{path: 'entities', component: EntityListComponent, children: [
{path: ':entityId', component: EntityTabComponent,
children: [
{path: '', redirectTo: 'attributes', pathMatch: 'full'},
{path: 'attributes', component: AttributeListComponent},
{path: 'tasks', component: TaskListComponent}
]}
]},
{path: 'domains', component: DomainListComponent}
]},
]},
{ path: '**', component: PageNotFoundComponent }
];