Last active
October 16, 2020 05:24
-
-
Save techlab23/6ed8bc5b009662fc4cbccbf251c48c2b to your computer and use it in GitHub Desktop.
Vue Component
This file contains 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