[Vuejs]-How can i access json data using for loop in vue js

1πŸ‘

βœ…

It is possible that product.productID is null and you are trying to access brand from null which is causing error.
To avoid error, you can use optional chaining

product.productID?.brand

Leave a comment