vue-owl-carousel
vue-owl-carousel copied to clipboard
Owl not work in a v-for loop
how do i insert the images via v-for loop?
i tried:
carousel v-for="(image,index) in images"
img :src="image.url"
and:
img v-for="(image, index) in images" :src="image.url"
both not work.
If you load the images dinamically, the carousel component dont wait until data is loaded.
Try this:
<carousel v-if="loaded">
<img v-for="(image, index) in images" :src="image.url">
</carousel>
And after load 'images' data you need to set loaded to true;
oh ! it works..
mounted () { if(this.getImages !== null) { this.loaded = true; } }
thx a lot!
it works!!!1
didn't work for me! :'(