Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What are Angular guards and how are they used?
Answer: Angular guards are used to control the navigation to or from a route. There are different types of guards, such as CanActivate, CanDeactivate, CanLoad, and Resolve. They are implemented as services and can be added to route configurations.

Example:

canActivate: [AuthGuard]
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook