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.
This solution is for Vue-2 users:
vue-2 if you don't like to keep your files in static folder (relevant info), orvue-2 & vue-cli-3 if you don't like to keep your files in public folder (static folder is renamed to public):The simple solution is :)
// just do this:
![]()
If you like to keep your static images in static/assets/img or public/assets/img folder, then just do:
// in some case without dot ./