Closed labibramadhan closed 7 years ago
How to listen to Owl Carousel 2 Events?
I have tried something like this:
ngAfterViewInit() { const owl = $(this._elementRef.nativeElement).find('owl-carousel-child').data('owl.carousel'); owl.on('onResize, onResized, onInitialize, onInitialized, onChange, onChanged, onDrag', console.log); }
But nothing triggered
Instead of listening to Owl Carousel events you can pass the callback in options input.
Thank you! it works.
How to listen to Owl Carousel 2 Events?
I have tried something like this:
But nothing triggered