Angular Guards are interfaces that control access to routes in Angular applications. They help in protecting routes based on conditions like authentication or user roles. For example, a CanActivate guard can prevent unauthorized users from accessing specific parts of the application.
There are several types of guards:
- CanActivate - checks if a route can be activated.
- CanDeactivate - checks if a user can leave a route.
- Resolve - fetches data before the route is activated.