I have a Vue component which is taking an object as a prop from the main App.
I want to access a property in that object which contains the url to the image source.
The url changes correctly. If, for example, the object's 'image' property is '../assets/image.png' then the src="" will point to the correct path but nothing will show.
If I put the url in the image src manually '../assets/image.png', the image displays no problem. But I want it to be dynamic.
<img :src="object.image" :alt='object.name'>
.name displays fine, but .image comes up with no image, even if the path is correct.