Someone would explain to me why I was not able to render the image on the screen. I am using Vue-cli and the image is in the assets folder inside the normal folder, but when I call it in the template it does not load. I have already tried this: ./assets/produto.png
, like this: ../assets/produto.png
, like this: src/assets/produto.png
. But without success!
Template:
<div>
<img :src="imagem" :alt="alt">
</div>
Script:
data () {
return {
imagem: './assets/produto.png',
alt: 'Imagens dos produtos.'
}
}