Skip to content

Commit 2846669

Browse files
Adam JahrAdam Jahr
authored andcommitted
L4 ending code
1 parent b92a6c0 commit 2846669

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
</div>
2020
<div class="product-info">
2121
<h1>{{ product }}</h1>
22+
<p v-if="inStock">In Stock</p>
23+
<p v-else>Out of Stock</p>
2224
</div>
2325
</div>
2426
</div>

main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const app = Vue.createApp({
22
data() {
33
return {
44
product: 'Socks',
5-
image: './assets/images/socks_blue.jpg'
5+
image: './assets/images/socks_blue.jpg',
6+
inStock: true
67
}
78
}
89
})

0 commit comments

Comments
 (0)