From 04732ca83901e5c10a2c70f58ce5adcc7469ace9 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 13:49:13 -0400 Subject: [PATCH] s2e18 event --- app.js | 4 ++-- index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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}}