mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-20 08:02:35 +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
|
# 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:
|
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@Preventing unauthorized access](https://angular.dev/guide/routing/common-router-tasks#preventing-unauthorized-access)
|
||||||
- [@official@Resolve](https://angular.dev/api/router/Resolve)
|
- [@official@Resolve](https://angular.dev/api/router/Resolve)
|
||||||
|
Reference in New Issue
Block a user