VueJS: Route Meta Data
Paulund is full of premium tutorials and support to help with your development
Sign up to get full access to all tutorials.
You can add additional information to a specific route by giving it route meta data, this meta data can then be picked up by the router on the beforeEach() function so you can add additional code when setting up your routes. A good example of using the route meta data is to add a meta to certain routes that require authentication. To add meta information to a certain route it's very simple all you need to do is add a new meta property to the route object. As you can see the about page now has a requiresAuth meta . . .