In app-routing I have one parent component and 3 childrens:
{
path: 'media', component: MediaComponent,
children: [
{ path: '', redirectTo: 'photos', pathMatch: 'full' },
{ path: 'photos', component: PhotosComponent },
{ path: 'documents', component: DocumentsComponent },
{ path: 'links', component: LinksComponent }
]
}
And in MediaComponent I get a route param like this: this.activatedRoute.parent.snapshot.params.memberId;
In any other components I tried the same thing and it is undefined. How can i get these params to childrenns?