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

-