A

Admin • 825.56K Points
Coach

Q. What is a `Guard` in Angular used for?

  • (A) To control access to routes
  • (B) To create services
  • (C) To log user actions
  • (D) To validate forms
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Guards like `CanActivate` and `CanDeactivate` control navigation to and from routes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.