A

Admin • 828.70K Points
Coach

Q. How do you protect a route from unauthorized access?

  • (A) Use ngIf in the template
  • (B) Use ngStyle
  • (C) Use CanActivate guard
  • (D) Use ngSwitch
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
CanActivate guard determines if a route can be activated based on conditions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.