What would you use to ensure that a route is only accessible to authenticated users?

  • CanActivate guard
  • Route event emitter
  • Route resolver
  • Router outlet
To ensure that a route is only accessible to authenticated users, you would use a CanActivate guard. CanActivate guards can be used to implement authentication and authorization checks before allowing access to a route.
Add your answer
Loading...

Leave a comment

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