Answer the question
In order to leave comments, you need to log in
How to set image src value dynamically?
How to pass a link to the src attribute with interpolation of a part of a string from an array?
<img :src=`https://site.org/img/{{array.data[0].icon}}.png` alt="">
Answer the question
In order to leave comments, you need to log in
<img :src=`https://site.org/img/${array.data[0].icon}.png` alt="">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question