Which Route Guard allows you to check whether a user can activate a particular route?

  • CanActivate
  • CanActivateChild
  • CanDeactivate
  • CanLoad
The 'CanActivate' Route Guard is used to check whether a user can activate a particular route. It's commonly used for protecting routes based on authentication or other conditions. This guard determines if a user has permission to access a specific route and is typically used to secure routes in Angular applications. The other guards have different roles, such as 'CanActivateChild' for protecting child routes and 'CanDeactivate' for confirming navigation away from a component.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *