Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Owl not work in a v-for loop #23

Open
aboutsam opened this issue Jul 21, 2019 · 4 comments
Open

Owl not work in a v-for loop #23

aboutsam opened this issue Jul 21, 2019 · 4 comments

Comments

@aboutsam
Copy link

aboutsam commented Jul 21, 2019

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.

@50l3r
Copy link

50l3r commented Jul 30, 2019

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;

@aboutsam
Copy link
Author

aboutsam commented Aug 1, 2019

oh ! it works..

mounted () {
if(this.getImages !== null) {
this.loaded = true;
}
}

thx a lot!

@Juanver
Copy link

Juanver commented Oct 5, 2020

it works!!!1

@Achraffawzi
Copy link

didn't work for me! :'(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants