From ffaec021192b4ff0196f793cb839883e7a403176 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 13:29:07 -0400 Subject: [PATCH] v once --- app.js | 4 +++- index.html | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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