fix(roadmaps/angular): guards roadmap information (#6129)

- remove deprecated `canLoad` angular guard
- change the description to use functional guards
pull/6133/head
Konrad 3 months ago committed by GitHub
parent f16aa78829
commit bcac605aeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      src/data/roadmaps/angular/content/107-routing/104-guards.md

@ -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)

Loading…
Cancel
Save