Skip to content

Instantly share code, notes, and snippets.

@wdmtech
Last active January 25, 2017 16:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wdmtech/aab07f4fe4a0ef6b17ea0b10bf10d5e2 to your computer and use it in GitHub Desktop.
Save wdmtech/aab07f4fe4a0ef6b17ea0b10bf10d5e2 to your computer and use it in GitHub Desktop.
A Vue 2.0 component template
<template>
<span>
</span>
</template>
<script>
import { mapState, mapActions } from 'vuex'
export default {
name: 'anonymous-component',
components: {},
props: {
hello: { default: Boolean, required: false }
},
computed: {
...mapState([]),
...mapActions([])
},
methods: {
},
data () {
return {}
},
mounted () {
}
}
</script>
<style>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment