36 lines
553 B
JavaScript
36 lines
553 B
JavaScript
var app = new Vue({
|
|
el: '#app',
|
|
data: {
|
|
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();
|
|
}
|
|
}
|
|
});
|