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/b5cd33f07548d8736337f55c8cdab4b6 to your computer and use it in GitHub Desktop.
Save crookse/b5cd33f07548d8736337f55c8cdab4b6 to your computer and use it in GitHub Desktop.
Vue: Automate Your Routing - contact.vue
<template lang="pug">
div
h1 {{ $route.meta.title }}
p {{ description }}
</template>
<script>
export const route = {
paths: ["/contact"],
meta: {
title: "Contact",
}
}
export default {
data() {
return {
description: "This is my contact page!",
};
},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment