I'm making an app with vue and ionic, but when trying to load assets the paths are not resolving.
<template>
<div id="index">
<img :src="image.src" v-for="image in images">
</div>
</template>
<script>
export default {
name: 'Inicio',
data() {
return {
images: [
{src: '@/assets/xxx.png'},
{src: '@/assets/xxxx.png'},
{src: '@/assets/xxx.png'}
]
}
}
}
</script>
The path in the src attribute appears like the one typed in the var '@/assets/xxx.png'
.
But if I do it directly, by typing the src in the image manually, like <img src="@/assets/xxx.png">
It loads the image correctly.