[Vuejs]-Img source in a component vue js

0👍

As mentioned in the comments, make sure you change your binding inside the Features component to:

<img :src="src" alt="" />

If that doesn’t help, try importing the image rather than having a relative path. This way, if your path is wrong you might get an error message.

import myImageSource from 'path/to/image.png'

-1👍

Append binding to the src attribute

<img :src="{{src}}" alt="">

Vue docs on v-bind

Leave a comment