From 250024e34bca965c7a1fc35a4f5128df957c7782 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 13 Apr 2018 22:59:43 -0400 Subject: [PATCH] s3e38 v-for --- app.js | 6 +++++- index.html | 16 +++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/app.js b/app.js index 7b0f6ef..7034975 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,10 @@ var app = new Vue({ el: '#app', data: { - show: true + ingredients: ['meat', 'fruit', 'cookies'], + persons: [ + {name: "Max", age: 33, color: "red"}, + {name: "Tyrel", age: 30, color: "blue"}, + ] } }); diff --git a/index.html b/index.html index 3f546ac..28ff85a 100644 --- a/index.html +++ b/index.html @@ -7,17 +7,11 @@
- - -

You can see me

-

Now you see me

- -

Do you also see me?

+