From be0ddd00f0db5dd90a3f691fd98e340291428d6c Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 14:16:15 -0400 Subject: [PATCH] s2e22 two way binding --- app.js | 16 +--------------- index.html | 10 ++-------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/app.js b/app.js index 3849f30..e598ca5 100644 --- a/app.js +++ b/app.js @@ -1,20 +1,6 @@ var app = new Vue({ el: '#app', data: { - counter: 0, - x: 0, - y: 0, + name: "Tyrel" }, - methods:{ - increase(step, event){ - this.counter+= step; - }, - updateCoordinates(event){ - this.x = event.clientX; - this.y = event.clientY; - }, - alertMe(event){ - alert(event.target.value); - } - } }) diff --git a/index.html b/index.html index 1ad5ed2..d1aa8ff 100644 --- a/index.html +++ b/index.html @@ -2,18 +2,12 @@ -
- - -

{{ counter }}

-

Coordinates {{x}}, {{y}} - DEAD SPOT -

- + +

{{name}}