[Vuejs]-Vue lazyload, do something after image error

0👍

The adapter property is reserved for the plugin option, it’s not available as a directive options.

You should instead use the $LazyLoad object that is bound to your component instance and hook into the listener for error:

this.$Lazyload.$on('error', function (errors) {
  console.log(errors)
})

Leave a comment