From 59b650a3cb87d99e649a2acfce9dd38c82b4eb46 Mon Sep 17 00:00:00 2001 From: peakacode <72694204+peakacode@users.noreply.github.com> Date: Mon, 30 Aug 2021 13:02:00 +0800 Subject: [PATCH] L4-done add image, inventory, onSale on data object and call in on html. Added another v-if and v-else for the items and item to display accordingly --- index.html | 11 ++++++++++- main.js | 7 +++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index e33445114..c51ca304b 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - +
On Sale!
+In Stock
++ Almost sold out + ({{ inventory }} items + {{ inventory}} item + left!) +
+Out of Stock