diff --git a/components/ProductDetails.js b/components/ProductDetails.js new file mode 100644 index 0000000..e6df085 --- /dev/null +++ b/components/ProductDetails.js @@ -0,0 +1,17 @@ +// solution +app.component('product-details', { + props: { + details: { + type: Array, + required: true + } + }, + template: + /*html*/ + ` + + ` +}) +// solution \ No newline at end of file diff --git a/components/ProductDisplay.js b/components/ProductDisplay.js index 2e6f72c..a6af5e6 100644 --- a/components/ProductDisplay.js +++ b/components/ProductDisplay.js @@ -14,9 +14,10 @@ app.component('product-display', {

Out of Stock

Shipping: {{ shipping }}

- + + + +
+ + +