diff --git a/app.js b/app.js index a40314f..0796b78 100644 --- a/app.js +++ b/app.js @@ -1,10 +1,12 @@ var app = new Vue({ el: '#app', data: { - title: "Hello world." + title: "Hello World", + link: "https://google.com" }, methods: { sayHello(){ + this.title = 'Hello'; return this.title; } } diff --git a/index.html b/index.html index 42281c3..31019ee 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,8 @@
-

{{ sayHello() }}

+

{{title}}

+

{{ sayHello() }}

- Google