Last active
October 30, 2017 19:22
-
-
Save zerodahero/414d61225eae8c7561a62e653715c23c to your computer and use it in GitHub Desktop.
Vue-Loader Full Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> <!-- Must have a root element (doesn't have to be div) --> | |
</div> | |
</template> | |
<script> | |
import AwesomeComponent from './AwesomeComponent.vue' | |
export default { | |
components: { | |
AwesomeComponent, | |
LocalScopeComponent: { | |
template: ` | |
<p>I'm just here because someone said there were free donuts?</p> | |
`, | |
props: { | |
donutFlavor: {required: true} | |
} | |
} | |
}, | |
data () { | |
return { | |
stringThang: "I'm a string!", | |
arrayThang: ["I'm","an","array","!"] | |
} | |
}, | |
watch: { | |
movie () { | |
return 'entertaining'; | |
} | |
}, | |
filters: { | |
filterThang (thang) { | |
return thang.filtered(); | |
} | |
}, | |
methods: { | |
// put your component-scoped methods here | |
}, | |
created () { | |
// load any server data here | |
}, | |
mounted () { | |
// do any DOM stuff here | |
}, | |
destroyed() { | |
}, | |
} | |
</script> | |
<style lang="scss" scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment