Chapter 9. Guards

The router uses guards to make sure that navigation is permitted, which can be useful for security, authorization, and monitoring purposes.
There are four types of guards:
canLoad
,
canActivate
,
canActivateChild
, and
canDeactivate
. In this chapter we will look at each of them in detail.