Learn how to use Vue Router Navigation Guards
Examples for each navigation guard provided. Fork this codepen to follow along:
https://codepen.io/patrickodacre/pen/...
View the Vue Router documentation here:
https://router.vuejs.org/en/advanced/...
** 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.
Смотрите видео Vue Router Tutorial - Navigation Guards (2018) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Build to Learn 02 Февраль 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 25,353 раз и оно понравилось 256 людям.