Answer the question
In order to leave comments, you need to log in
How to restart owl carousel after loading slides?
Good day.
There is a Carousel in the application on vue: $('.selection_slider').owlCarousel();
There is the application itself
el: '#selection',
data: {
data: data,
assort: []
},
methods:{
gobrand: function (id) {
this.assort = this.data[id].assort;
refresh(); // Здесь нужно переинициализировать слайдер
},
},
var $owl = $('.selection_slider').owlCarousel();
function refresh() {
$owl.trigger('refresh.owl.carousel');
}
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