Skip to content

Glossary: Angular Beyond the Basics

CanActivateFn

Also written: canActivate

A guard function that runs as a route opens and returns `true`, `false` or a `UrlTree`. Kettle & Crane's `authGuard` uses it to send logged-out users to /login.

Where the book teaches it

Related terms

GuardUrlTreecanActivateChild