Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue.js 3 Options API Masterclass

Navigation Guards for Componentless Routes thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Navigation Guards for Componentless Routes

🚧 PLEASE NOTE: This masterclass is built with the Options API

The Composition API Masterclass is coming soon!

In this lesson we move the Vue Router 4 in component route navigation guard protecting the profile page to the routes file for better organization. We also use a "componentless" navigation guard in order to create a logout route for our Vue.js 3 application.