diff --git a/app.js b/app.js index 18fdbdc..8c676d6 100644 --- a/app.js +++ b/app.js @@ -6,8 +6,8 @@ var app = new Vue({ y: 0, }, methods:{ - click(){ - this.counter++; + increase(step, event){ + this.counter+= step; }, updateCoordinates(event){ this.x = event.clientX; diff --git a/index.html b/index.html index 98d313f..3180a0e 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@
- +

{{ counter }}

Coordinates {{x}} {{y}}