Created
June 20, 2021 05:55
-
-
Save titusdecali/d42db58ce635b1afeee98857432c9d33 to your computer and use it in GitHub Desktop.
Vue: Access all vue-router routes and metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
v-for="(route, idx) in $router.options.routes.filter( | |
(routeItem) => routeItem.name === $route.matched[0].name | |
)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment