We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92a6c0 commit 2846669Copy full SHA for 2846669
index.html
@@ -19,6 +19,8 @@
19
</div>
20
<div class="product-info">
21
<h1>{{ product }}</h1>
22
+ <p v-if="inStock">In Stock</p>
23
+ <p v-else>Out of Stock</p>
24
25
26
main.js
@@ -2,7 +2,8 @@ const app = Vue.createApp({
2
data() {
3
return {
4
product: 'Socks',
5
- image: './assets/images/socks_blue.jpg'
+ image: './assets/images/socks_blue.jpg',
6
+ inStock: true
7
}
8
9
})
0 commit comments