Skip to content

Instantly share code, notes, and snippets.

@titusdecali
Created June 20, 2021 05:55
Show Gist options
  • Save titusdecali/d42db58ce635b1afeee98857432c9d33 to your computer and use it in GitHub Desktop.
Save titusdecali/d42db58ce635b1afeee98857432c9d33 to your computer and use it in GitHub Desktop.
Vue: Access all vue-router routes and metadata
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