From 63f2d9f7432d270ab576c89fb82abcf6bb25c152 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 10:56:49 -0400 Subject: [PATCH] update title with changeTitle --- app.js | 5 +++++ index.html | 1 + 2 files changed, 6 insertions(+) diff --git a/app.js b/app.js index 2269ddb..3cc71c3 100644 --- a/app.js +++ b/app.js @@ -2,5 +2,10 @@ var app = new Vue({ el: '#app', data: { title: "Hello world." + }, + methods:{ + changeTitle(event){ + this.title = event.target.value + } } }) diff --git a/index.html b/index.html index 103c177..1a53ef7 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,7 @@
+

{{ title }}