Skip to content

Instantly share code, notes, and snippets.

@crookse
Last active November 28, 2019 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crookse/5b9e9e78b35e80ef59db873868e854a8 to your computer and use it in GitHub Desktop.
Save crookse/5b9e9e78b35e80ef59db873868e854a8 to your computer and use it in GitHub Desktop.
Vue: Automate Your Routing - about.vue
<template lang="pug">
div
h1 {{ $route.meta.title }}
p {{ description }}
</template>
<script>
export const route = {
paths: ["/about"],
meta: {
title: "About",
}
}
export default {
data() {
return {
description: "This is my about page!",
};
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment