Skip to content

Instantly share code, notes, and snippets.

@techlab23
Last active October 16, 2020 05:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save techlab23/6ed8bc5b009662fc4cbccbf251c48c2b to your computer and use it in GitHub Desktop.
Save techlab23/6ed8bc5b009662fc4cbccbf251c48c2b to your computer and use it in GitHub Desktop.
Vue Component
<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