[Vuejs]-Dynamic image binding in Vuejs: https:/blah/${item.img}

0👍

Boo. My sincerest apologies but it was just a simple typo of the url but to answer my question, these work as intended.

<v-img :src="`https://thisisanexternalsite.com/images/${item.img}`" contain></v-img>

and this one as well

<v-img :src="'https://thisisanexternalsite.com/images/' + item.img" contain></v-img>

I’ll try to be more careful next time. Cheers.

Leave a comment