mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(slides): change event emitter from next to emit
Next is apparently deprecated.
This commit is contained in:
@ -91,7 +91,7 @@ import {Scroll} from '../scroll/scroll';
|
||||
directives: [NgClass]
|
||||
})
|
||||
export class Slides extends Ion {
|
||||
@Output() change:EventEmitter = new EventEmitter();
|
||||
@Output() change: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
/**
|
||||
* @private
|
||||
@ -150,7 +150,7 @@ export class Slides extends Ion {
|
||||
return this.options.onSlideChangeStart && this.options.onSlideChangeStart(swiper);
|
||||
};
|
||||
options.onSlideChangeEnd = (swiper) => {
|
||||
this.change.next(swiper);
|
||||
this.change.emit(swiper);
|
||||
return this.options.onSlideChangeEnd && this.options.onSlideChangeEnd(swiper);
|
||||
};
|
||||
options.onLazyImageLoad = (swiper, slide, img) => {
|
||||
|
Reference in New Issue
Block a user