πŸ“Š Angular
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Use CanActivate guard

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
48
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate