From e594f717c51beeca46bf63ca35118758266ba412 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 18 Jan 2021 16:27:26 +0100 Subject: [PATCH] lesson 17: data inside the Vue app --- basics-01-starting-code/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/basics-01-starting-code/app.js b/basics-01-starting-code/app.js index e924058..2657a04 100644 --- a/basics-01-starting-code/app.js +++ b/basics-01-starting-code/app.js @@ -3,7 +3,8 @@ const app = Vue.createApp({ data() { return { - courseGoal: "Finish the course and learn Vue.", + courseGoalA: "Finish the course and learn Vue!", + courseGoalB: "Master Vue and build amazing apps!", vueLink: "https://vuejs.org", }; }, @@ -11,9 +12,9 @@ const app = Vue.createApp({ outputGoal() { const randomNumber = Math.random(); if (randomNumber < 0.5) { - return "Learn Vue!"; + return this.courseGoalA; } else { - return "Master Vue!"; + return this.courseGoalB; } }, },