Question · Angular course · Module 4: Routing

Functional guard type

Which type do we use for a modern (functional) guard protecting entry to a route?

Answer options

  • CanActivate (a class implementing an interface)
  • CanActivateFn
  • GuardFn
  • ActivateGuard

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