mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +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]
|
directives: [NgClass]
|
||||||
})
|
})
|
||||||
export class Slides extends Ion {
|
export class Slides extends Ion {
|
||||||
@Output() change:EventEmitter = new EventEmitter();
|
@Output() change: EventEmitter<any> = new EventEmitter();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@ -150,7 +150,7 @@ export class Slides extends Ion {
|
|||||||
return this.options.onSlideChangeStart && this.options.onSlideChangeStart(swiper);
|
return this.options.onSlideChangeStart && this.options.onSlideChangeStart(swiper);
|
||||||
};
|
};
|
||||||
options.onSlideChangeEnd = (swiper) => {
|
options.onSlideChangeEnd = (swiper) => {
|
||||||
this.change.next(swiper);
|
this.change.emit(swiper);
|
||||||
return this.options.onSlideChangeEnd && this.options.onSlideChangeEnd(swiper);
|
return this.options.onSlideChangeEnd && this.options.onSlideChangeEnd(swiper);
|
||||||
};
|
};
|
||||||
options.onLazyImageLoad = (swiper, slide, img) => {
|
options.onLazyImageLoad = (swiper, slide, img) => {
|
||||||
|
Reference in New Issue
Block a user