Put in order · Angular course · Module 4: Routing

Attaching a guard to a route

Arrange token by token the attachment of a guard to the admin route:

Items to put in order

  • { path: 'admin',
  • canActivate: [authGuard]
  • }
  • component: AdminComponent,

You can check the correct answer by solving this task in the CodeWorlds game.