I wanted to know if you use a RoleGuard to check if someone can activate the path and you want a different RoleGuard in a child item could be possible:
I already tried but I can't acces to the path with the different RoleGuard
{
path: 'admin',
canActivate: [AdminGuard],
children: [
{ path: '', redirectTo: 'test', pathMatch: 'full'},
{ path: 'test', component: MasterDataComponent},
{ path: 'test/subtest', component: ObjectsTypeComponent },
{ path: 'test/subtest/:operation', component: ObjectsTypeDetailComponent },
{ path: 'test/subtest/:operation/:id', component: ObjectsTypeDetailComponent },
{ path: 'test/money', component: DivisesComponent, canActivate: [OperatorGuard] }
}
So, Only Admins can enter in this path, but I want to allow Operator to enter the path test/money.
Thanks in advise.