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 }}