2018-04-13 14:54:53 +00:00
|
|
|
var app = new Vue({
|
|
|
|
el: '#app',
|
|
|
|
data: {
|
2018-04-13 17:47:10 +00:00
|
|
|
counter: 0,
|
|
|
|
x: 0,
|
|
|
|
y: 0,
|
2018-04-13 14:56:49 +00:00
|
|
|
},
|
2018-04-13 17:44:28 +00:00
|
|
|
methods:{
|
2018-04-13 17:49:13 +00:00
|
|
|
increase(step, event){
|
|
|
|
this.counter+= step;
|
2018-04-13 17:47:10 +00:00
|
|
|
},
|
|
|
|
updateCoordinates(event){
|
|
|
|
this.x = event.clientX;
|
|
|
|
this.y = event.clientY;
|
2018-04-13 14:56:49 +00:00
|
|
|
}
|
2018-04-13 14:54:53 +00:00
|
|
|
}
|
|
|
|
})
|