Added guards documentation (#2195)

* Added guards documentation

* Changed links

* Update content/roadmaps/104-angular/content/107-routing/104-guards.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
pull/2142/head^2
angeles-bilbao6 2 years ago committed by GitHub
parent 3616c53182
commit 2124c0eed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      content/roadmaps/104-angular/content/107-routing/104-guards.md

@ -1 +1,12 @@
# 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.
Some types of angular guards are `CanActivate`, `CanActivateChild`, `CanLoad`, `CanDeactivate` and `Resolve`.
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://angular.io/api/router'>Angular Official Website</BadgeLink>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://angular.io/api/router/CanActivate'>Can Activate Guard</BadgeLink>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://angular.io/api/router/CanActivateChild'>Can Activate Child</BadgeLink>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://angular.io/api/router/CanDeactivate'>Can Deactivate</BadgeLink>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://angular.io/api/router/CanLoad'>Angular Can Load</BadgeLink>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://angular.io/api/router/CanMatch'>Can Match</BadgeLink>

Loading…
Cancel
Save