Answer the question
In order to leave comments, you need to log in
Why does calling owl.data('owlCarousel') return undefined?
I'm using version 2. The carousel works fine except for one thing. Required to get the carousel properties object. This method is recommended, but it returns an empty result.
owl = $('.owl-carousel');
owl.owlCarousel({
loop : true,
margin : 20,
nav : true,
smartSpeed : 500,
dots : false,
responsive:{
0:{
items : 1
},
767:{
items : 2
},
1200:{
items : 3
},
});
let options = owl.data('owlCarousel');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question