-
-
Save hoangitk/7e256887348cfde5d46dbf29d7b5e134 to your computer and use it in GitHub Desktop.
Vue Component
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> | |
<h1> {{ message }} </h1> | |
<div | |
</template> | |
<script> | |
export default { | |
/* Child component registration */ | |
components: {}, | |
/* Properties */ | |
props: [], | |
/* Component's local data */ | |
data() { | |
return { | |
message: 'Thinking in components' | |
} | |
}, | |
/* Watchers */ | |
watch: {}, | |
/* Computed properties */ | |
computed: {}, | |
/* Component methods */ | |
methods: { | |
}, | |
/* Vue lifecycle hooks: | |
Ref: https://vuejs.org/v2/guide/instance.html#Instance-Lifecycle-Hooks | |
*/ | |
created() {}, | |
mounted() {}, | |
updated() {}, | |
destroyed() {} | |
.... | |
} | |
</script> | |
<style scoped> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment