My Vue component contains some images. I want to do lazy-loading later, so I need to set the src of the images to a small image, first.
declare new variable that the value contain the path of image
const imgLink = require('../../assets/your-image.png')
then call the variable
export default { name: 'onepage', data(){ return{ img: imgLink, } } }
bind that on html, this the example:
hope it will help