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
parent
3616c53182
commit
2124c0eed7
1 changed files with 12 additions and 1 deletions
@ -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…
Reference in new issue