mardi 12 mars 2019

Using dynamic name in v:bind inside v-for

So, basically, I have products array, and prices array, which has a product_id array inside (and inside that array I have the price and priceAfterDiscount data). The problem is that I am not able to pass this data using v-bind. (See :price="prices.product_${product.id}.price") This renders f.e. prices.product_8.price string instead of getting into array.

Thanks in advance. The code is below



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2CgiSox
via IFTTT

Aucun commentaire:

Enregistrer un commentaire