Closed cpury closed 7 years ago
Ok I got it to work. Simply imported flickity-bg-lazyload
in my component after importing vue-flickity
. It then patches the existing Flickity
variable.
Of course that's not the cleanest way of doing this, maybe you want to consider adding some nicer API 😃
Thanks! Just for future readers:
import VueFlickity from 'vue-flickity';
require('flickity-bg-lazyload');
Great package!
To get
bgLazyLoad: true
to work, I need to install https://github.com/metafizzy/flickity-bg-lazyload . I tried installing it vianpm install flickity-bg-lazyload --save
, but mydata-flickity-bg-lazyload
attributes just get ignored.Have you tried using add-on packages like this? Any ideas how to get them to work?
Thanks!