Put in order · Angular course · Module 12: Security and Performance
Protected route configuration
Order the fields of the route object protected by a guard (top to bottom):
Items to put in order
- canActivate: [authGuard, roleGuard],
- path: 'admin',
- data: { roles: ['admin'] },
- loadComponent: () => import('./admin.component')
You can check the correct answer by solving this task in the CodeWorlds game.