A

Admin • 828.70K Points
Coach

Q. How can you protect a route in Angular to allow only authorized users?

  • (A) Using route guards
  • (B) Using ngIf directive
  • (C) Using services
  • (D) Using lazy loading
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Route guards control access to routes based on authentication or authorization.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.