From c5776f88d5c8ab6b142a1ca727adc7eedc8e688c Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 22:50:29 -0400 Subject: [PATCH] s3e34 conditions with if --- app.js | 11 +---------- index.html | 11 +++++------ 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/app.js b/app.js index e41bcbe..7b0f6ef 100644 --- a/app.js +++ b/app.js @@ -1,15 +1,6 @@ var app = new Vue({ el: '#app', data: { - color: "gray", - width: 100 - }, - computed:{ - myStyle(){ - return { - backgroundColor: this.color, - width: this.width + "px" - } - } + show: true } }); diff --git a/index.html b/index.html index adefdbd..52c6981 100644 --- a/index.html +++ b/index.html @@ -7,12 +7,11 @@
-
-
-
-
- - + + +

You can see me

+

Now you see me

+

Do you also see me?