Загрузка страницы

Vue Router Tutorial - Navigation Guards (2018)

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/owjVNK
View the Vue Router documentation here:

https://router.vuejs.org/en/advanced/navigation-guards.html

** 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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
3 февраля 2018 г. 8:22:36
00:18:27
Яндекс.Метрика