Skip to content

Glossary: Angular Beyond the Basics

Guard

Also written: guards, route guard, Route guard

A function the router runs before a route opens or closes. It returns `true`, `false` or a `UrlTree` to allow, block or redirect.

Where the book teaches it

Related terms

CanActivateFnCanMatchFnCanDeactivateFnUrlTree