mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-07-31 22:40:19 +02:00
fix(roadmaps/angular): guards roadmap information (#6129)
- remove deprecated `canLoad` angular guard - change the description to use functional guards
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
# Route Guards
|
||||
|
||||
Angular route guards are interfaces provided by Angular which, when implemented, allow us to control the accessibility of a route based on conditions provided in class implementation of that interface.
|
||||
Use route guards to prevent users from navigating to parts of an application without authorization.
|
||||
|
||||
Some types of angular guards are `CanActivate`, `CanActivateChild`, `CanLoad`, `CanDeactivate` and `Resolve`.
|
||||
Angular route guards are interfaces provided by Angular that, when implemented, allow us
|
||||
to control the accessibility of a route based on conditions provided in function implementation of that interface.
|
||||
|
||||
Some types of angular guards are `CanActivate`, `CanActivateChild`, `CanDeactivate`, `CanMatch` and `Resolve`.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Angular Official Website](https://angular.dev/guide/routing)
|
||||
- [@official@Preventing unauthorized access](https://angular.dev/guide/routing/common-router-tasks#preventing-unauthorized-access)
|
||||
- [@official@Resolve](https://angular.dev/api/router/Resolve)
|
||||
|
Reference in New Issue
Block a user