Adding product image & price
If we look in Vue Devtools after we've done a search, we can see the
products array gets populated with product. [do a search for cat]
You'll see that each one has the id, price and title like we've seen before, but there's also a
thumb property, which is the path to the thumbnail image.
We now want to use the
thumb property and display the thumbnail on our products.
Click to load comments...