Question 1 / 1
An AuthGuard returns false when the user isn't logged in. A RoleGuard returns false when the user lacks the required role. Both are listed in canActivate: [AuthGuard, RoleGuard] on the /admin route. An unauthenticated user navigates to /admin. What happens?
typescript const routes: Routes = [{ path: 'admin', component: AdminComponent, canActivate: [AuthGuard, RoleGuard] }];
// AuthGuard.canActivate() returns false for unauthenticated users // RoleGuard.canActivate() returns false for non-admin users