From e5a0b6e46075502879cded6f9e697101c4981ac1 Mon Sep 17 00:00:00 2001 From: Adam Jahr Date: Tue, 21 Jul 2020 00:48:15 -0400 Subject: [PATCH] L9 solution --- components/ProductDetails.js | 17 +++++++++++++++++ components/ProductDisplay.js | 9 +++++---- index.html | 3 +++ main.js | 6 +----- 4 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 components/ProductDetails.js 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 }}

- + + + +
+ + +