Question · Angular course · Module 12: Security and Performance

Auth Guard Role

What type is a modern functional guard that protects a route in Angular 19?

Answer options

  • CanActivate (a class implementing an interface)
  • RouteGuardService
  • CanActivateFn (a function using inject())
  • @Guard() decorator

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