From 684da6bd690a99685e4ab408b565683d8bdfb3aa Mon Sep 17 00:00:00 2001 From: Kumar Priyansh Date: Fri, 31 May 2019 18:58:27 +0700 Subject: Updated Dashboard JS to Show Products on Homepage --- shared/Dashboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/Dashboard.js b/shared/Dashboard.js index 6bad7a0..6c9d7af 100644 --- a/shared/Dashboard.js +++ b/shared/Dashboard.js @@ -47,10 +47,11 @@ $(document).ready(function(){ } function loadAllProducts() { $.getJSON("../products.json", function(result){ + console.log(result) var size = (Object.keys(result).length) for(i = 0; i < size ; i++) { - // $('#loader') + $('#loader').append('

'+result[i].productName+'

$'+result[i].productPrice+'
View Product
') } }); } -- cgit v1.2.3