A

Admin • 830.13K Points
Coach

Q. What is the purpose of a guard in Angular?

  • (A) To control access to routes
  • (B) To display error messages
  • (C) To enhance form validation
  • (D) To style components
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Guards like CanActivate are used to protect routes based on conditions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.