Learn how to use Vue Router Navigation Guards
Examples for each navigation guard provided. Fork this codepen to follow the Vue Router documentation Global Guards:
beforeEach()
afterEach()
beforeResolve()
Found on the ‘router’ object.
** Per-Route Guard:
beforeEnter()
Found on each individual route definition object.
** In-Component Guards:
beforeRouteEnter()
beforeRouteUpdate()
beforeRouteLeave()
Placed on the individual component’s option object.
No comments:
Post a Comment