Q. What is the purpose of a guard in Angular?
β
Correct Answer: (A)
To control access to routes
Explanation: Guards like CanActivate are used to protect routes based on conditions.