Q. How can you prevent a route from being accessed in Angular?
β
Correct Answer: (B)
Using route guards
Explanation: Route guards like CanActivate and CanLoad prevent access to routes based on conditions.