How to reinitialize Owl Carousel after ajax call?

前端 未结 4 1482
误落风尘
误落风尘 2020-12-06 15:47

I am trying to reinitialize owl carousel after a successful ajax call. The ajax call will change the data but the view should stay the same.I am having an issue where the vi

4条回答
  •  星月不相逢
    2020-12-06 16:08

    Nothing above worked for me only this worked :

    $('.owl-gallery').data('owlCarousel').destroy();
    $('.owl-gallery').owlCarousel(options);
    

提交回复
热议问题