Navigation Guard
Noun · Development
Definitions
A hook in a client-side router — most prominently Vue Router's `beforeEach`, `beforeEnter`, and `beforeRouteLeave` — that intercepts navigation events and can redirect, cancel, or allow the transition, commonly used for authentication checks and unsaved-changes prompts.
In plain English: A checkpoint in a web app's page-switching logic that can block or redirect the user, like a bouncer checking IDs before letting you into a page.
Example: "The navigation guard on the dashboard route checks the auth token and redirects to `/login` if it's expired."