Skip to content

Commit a6209b8

Browse files
Adam JahrAdam Jahr
authored andcommitted
L5 starting code
1 parent 9ce75d2 commit a6209b8

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

index.html

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@
2121
<h1>{{ product }}</h1>
2222
<p v-if="inStock">In Stock</p>
2323
<p v-else>Out of Stock</p>
24-
<ul>
25-
<li v-for="detail in details">{{ detail }}</li>
26-
</ul>
27-
<ul>
28-
<li v-for="size in sizes">{{ size }}</li>
29-
</ul>
30-
<div v-for="variant in variants" :key="variant.id">{{ variant.color }}</div>
3124
</div>
3225
</div>
3326
</div>

main.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ const app = Vue.createApp({
44
product: 'Socks',
55
image: './assets/images/socks_blue.jpg',
66
inStock: true,
7-
details: ['50% cotton', '30% wool', '20% polyester'],
8-
sizes: ['S', 'M', 'L', 'XL'],
9-
variants: [
10-
{ id: 2234, color: 'green' },
11-
{ id: 2235, color: 'blue' },
12-
]
7+
details: ['50% cotton', '30% wool', '20% polyester']
138
}
149
}
1510
})

0 commit comments

Comments
 (0)