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

Vue Router 4 for Everyone

Route Meta Fields

In this lesson, we take a look at Vue Router's route meta fields and their ability to attach arbitrary information to a route.

A common use case for route meta fields is to mark some routes as protected. We implement just this for the travel app to see route meta fields in action.