我需要在更改猫头鹰旋转木马幻灯片时调用角度7 函数,我想为幻灯片设计一个自定义点。谁能帮助我。.
我在下面引用了文档
https://www.npmjs.com/package/ngx-owl-carousel
https://owlcarousel2.github.io/OwlCarousel2/docs/api-events.html
<owl-carousel #owlElement [options]="sliderOptions" [carouselClasses]="['owl-theme','sliding']"></owl-carousel>
@ViewChild('owlElement',{ static: false }) owlElement: OwlCarousel;
self = this;
sliderOptions = {
items: 1,dots: true,nav: false,navText: ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],onChange: function () {
console.log("change");
self.changeCustomDots();
}
};
ngOnInit() {}
changeCustomDots() {
console.log("change custom dots styles here..");
}