CodeZettaInterview Hub

Angular · Guards · Mid-Level · Debugging

What are Angular route guards?

Short Interview Answer

Hooks that decide whether navigation can activate, deactivate, match, or load.

Detailed Explanation

Functional guards are preferred: canActivate, canMatch, canDeactivate returning boolean/UrlTree/Observable/Promise. Use for auth and unsaved changes.

Did you know this answer?