Skip to content

Instantly share code, notes, and snippets.

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