Skip to content

Instantly share code, notes, and snippets.

@humb1t
Forked from chrisvfritz/Hello.vue
Last active December 10, 2019 12:49
Show Gist options
  • Save humb1t/2c914b15f2300fb29f00c09fa8f1dd66 to your computer and use it in GitHub Desktop.
Save humb1t/2c914b15f2300fb29f00c09fa8f1dd66 to your computer and use it in GitHub Desktop.
<template>
<p>{{ greeting }} World!</p>
</template>
<script>
export default {
data: function () {
return {
greeting: 'Hello'
}
}
}
</script>
<style scoped>
p {
font-size: 2em;
text-align: center;
}
</style>
@humb1t
Copy link
Author

humb1t commented Dec 10, 2019

Initial fork to change module.exports = into 'export default`.

Motivation: provide up to date version of https://vuejs.org/v2/guide/single-file-components.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment