From 36264891e27e6009b2b4086206624aad3735ea79 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 13:55:37 -0400 Subject: [PATCH] s2e20 keyup and enter --- app.js | 4 ++-- index.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index ee3c2b6..3849f30 100644 --- a/app.js +++ b/app.js @@ -13,8 +13,8 @@ var app = new Vue({ this.x = event.clientX; this.y = event.clientY; }, - dummy(event){ - event.stopPropagation(); + alertMe(event){ + alert(event.target.value); } } }) diff --git a/index.html b/index.html index a5c3e43..119283f 100644 --- a/index.html +++ b/index.html @@ -12,6 +12,7 @@

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

+