A

Admin • 832.27K Points
Coach

Q. What does a guard in Angular routing do?

  • (A) Restricts access to routes based on logic
  • (B) Renders components
  • (C) Formats URLs
  • (D) Triggers animations
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

Guards like CanActivate determine if a route can be accessed or not.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.