Adding product image & price
In the last video we integrated API data into our Vue app.
If you look in Vue Devtools after we've done a search, we can see the products
array gets populated with product objects. [do a search for cat]
Notice that each object has the id
, price
and title
like we had before, but there's also a thumb
property, which is the path to the thumbnail image.
We now want to use the thumb
property to display the thumbnail on our products.
Click to load comments...