Skip to content

Instantly share code, notes, and snippets.

@neves
Last active March 9, 2017 19:08
Show Gist options
  • Save neves/341deed7be47f1df0781561264750b98 to your computer and use it in GitHub Desktop.
Save neves/341deed7be47f1df0781561264750b98 to your computer and use it in GitHub Desktop.
var app = new Vue({
el: '#app', // https://vuejs.org/v2/api/#el
template: '', // https://vuejs.org/v2/api/#template
render (h) {}, // https://vuejs.org/v2/api/#render
data: {}, // https://vuejs.org/v2/api/#data
computed: { // https://vuejs.org/v2/api/#computed
fullName: {
get () {},
set (value) {} // https://vuejs.org/v2/guide/computed.html#Computed-Setter
}
},
methods: {}, // https://vuejs.org/v2/api/#methods
watch: { // https://vuejs.org/v2/api/#watch
fullName: {
deep: true, // https://vuejs.org/v2/api/#vm-watch
handler () {}
}
},
directives: {}, // https://vuejs.org/v2/guide/custom-directive.html
filters: {},
components: {},
mixins: [], // https://vuejs.org/v2/api/#mixins
// https://vuejs.org/guide/instance.html#Lifecycle-Diagram
beforeCreate () {},
created () {},
beforeMount () {},
mounted () {
// https://vuejs.org/v2/api/#Instance-Properties
},
beforeUpdate () {},
updated () {},
activated () {}, // https://vuejs.org/v2/api/#activated
deactivated () {}, // https://vuejs.org/v2/api/#deactivated
beforeDestroy () {},
destroyed () {},
})
Vue.component('my-component', {
name: '', // https://vuejs.org/v2/api/#name
extends: '', // https://vuejs.org/v2/api/#extends
props: [], // https://vuejs.org/v2/api/#props
propsData: {}, // https://vuejs.org/v2/api/#propsData
})
@neves
Copy link
Author

neves commented Mar 8, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment