diff --git a/src/data/roadmaps/angular/content/107-routing/104-guards.md b/src/data/roadmaps/angular/content/107-routing/104-guards.md index 376caf0a2..1143698c1 100644 --- a/src/data/roadmaps/angular/content/107-routing/104-guards.md +++ b/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)