learnin-some-vue/lessons/app.js

36 lines
553 B
JavaScript
Raw Normal View History

2018-04-13 14:54:53 +00:00
var app = new Vue({
el: '#app',
data: {
2018-04-16 03:33:40 +00:00
title: "The VueJS nstance"
},
beforeCreate(){
console.log("Created");
},
created(){
console.log("created");
},
beforeMount(){
console.log("beforeMount");
},
mounted(){
console.log("mounted");
},
beforeUpdate(){
console.log("before update");
},
updated(){
console.log("updated");
},
beforeDestroy(){
console.log("before destroy");
},
destroyed(){
console.log("destroyed");
},
methods:{
destroy(){
this.$destroy();
}
2018-04-13 18:57:51 +00:00
}
2018-04-13 18:55:09 +00:00
});