Does Angular Child Routes inherit Parent Route Guard?

Viewed 1390

I have the following route definition:

export const AppRoutes = RouterModule.forRoot([
{
    path: '',
    canActivate: [AuthGuardService],
    component: HomeComponent,
    children: [
        {
            path: 'child1',
            component: Child1Component
        },
    ]
},
]);

Will child1 route inherit the canActivate guard from its parent?

0 Answers
Related