learnin-some-vue/app.js
2018-04-13 13:53:25 -04:00

21 lines
317 B
JavaScript

var app = new Vue({
el: '#app',
data: {
counter: 0,
x: 0,
y: 0,
},
methods:{
increase(step, event){
this.counter+= step;
},
updateCoordinates(event){
this.x = event.clientX;
this.y = event.clientY;
},
dummy(event){
event.stopPropagation();
}
}
})