mercredi 29 janvier 2020

How to display an object properties on the page from an array of objects in Ember.js?

I have a website that has a list of products when a user clicks on 'Add to cart' he adds a product to the card (product is saved in a Local Storage). I want to display a list of projects added to the card from the Local storage on my page, but all I get is: [object Object] [object Object] [object Object]. How do I display the properties of these objects on my page? (I have a JSON file with the names, pictures, prices of the product, the data to display is coming from my JSON file)




Aucun commentaire:

Enregistrer un commentaire