The Vue.js 2 Master Class
🚧 NOTICE: You are watching a Vue.js 2 lesson

Componentless Routes with Navigation Guards

In-component guards are useful in certain scenarios, in this lesson we're learning how to set the guard directly in the Vue router.

We will also learn how we can create navigation guards for componentless routes (such as logout).