learnin-some-vue/app.js
2018-04-13 13:47:10 -04:00

18 lines
242 B
JavaScript

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