Files
developer-roadmap/roadmaps/angular/content/guards@PmC4zeaLpa5LoL4FhYXcG.md

673 B

Guards

Guards are interfaces that tell the router whether it should allow a user to navigate to or away from a requested route. They function by executing a piece of logic that returns a boolean, a promise, or an observable to determine if the navigation process proceeds or is blocked. This mechanism provides a way to protect specific pages based on conditions like authentication status, user permissions, or unsaved form data.

Visit the following resources to learn more: