L10 starting code
This commit is contained in:
parent
e5a0b6e460
commit
8c51141d99
@ -1,17 +0,0 @@
|
|||||||
// solution
|
|
||||||
app.component('product-details', {
|
|
||||||
props: {
|
|
||||||
details: {
|
|
||||||
type: Array,
|
|
||||||
required: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
template:
|
|
||||||
/*html*/
|
|
||||||
`
|
|
||||||
<ul>
|
|
||||||
<li v-for="detail in details">{{ detail }}</li>
|
|
||||||
</ul>
|
|
||||||
`
|
|
||||||
})
|
|
||||||
// solution
|
|
||||||
@ -14,10 +14,10 @@ app.component('product-display', {
|
|||||||
<p v-else>Out of Stock</p>
|
<p v-else>Out of Stock</p>
|
||||||
|
|
||||||
<p>Shipping: {{ shipping }}</p>
|
<p>Shipping: {{ shipping }}</p>
|
||||||
|
|
||||||
<!-- solution -->
|
<ul>
|
||||||
<product-details :details="details"></product-details>
|
<li v-for="detail in details">{{ detail }}</li>
|
||||||
<!-- solution -->
|
</ul>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-for="(variant, index) in variants"
|
v-for="(variant, index) in variants"
|
||||||
|
|||||||
@ -21,9 +21,6 @@
|
|||||||
|
|
||||||
<!-- Import Components -->
|
<!-- Import Components -->
|
||||||
<script src="./components/ProductDisplay.js"></script>
|
<script src="./components/ProductDisplay.js"></script>
|
||||||
<!-- solution -->
|
|
||||||
<script src="./components/ProductDetails.js"></script>
|
|
||||||
<!-- solution -->
|
|
||||||
|
|
||||||
<!-- Mount App -->
|
<!-- Mount App -->
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user