From c147f918bdccaaa55f89b8eedc5c4d8dadeef208 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 13:20:21 -0400 Subject: [PATCH] method --- app.js | 6 +++--- index.html | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app.js b/app.js index 3cc71c3..96e9448 100644 --- a/app.js +++ b/app.js @@ -3,9 +3,9 @@ var app = new Vue({ data: { title: "Hello world." }, - methods:{ - changeTitle(event){ - this.title = event.target.value + methods: { + sayHello(){ + return "Hello"; } } }) diff --git a/index.html b/index.html index 21acdf3..42281c3 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,9 @@
- -

{{ title }}

+

{{ sayHello() }}

-