Skip to content

Auth Route Guards

Route guards protect routes from unauthorized access and pre-fetch data before activation.

  • canActivate: Can user enter?
  • canDeactivate: Can user leave?
  • canMatch: Should route match?
  • Resolve: Pre-fetch data

Combine auth and role guards to protect your application routes.”