Home > Net >  How use object in image tag src
How use object in image tag src

Time:09-08

How can I use object in img src?

// html
<img src= "item.img"

Sample

CodePudding user response:

Below is a way to pass the url

<img :src="item.img"

if the above doesn't work then try the same using require just as below

<img :src="require(item.img)"

Assuming that item is an object with img property present in it

  • Related