diff --git a/ionic/components/slides/slides.ts b/ionic/components/slides/slides.ts index 5f155ab6f7..c2b6c6090e 100644 --- a/ionic/components/slides/slides.ts +++ b/ionic/components/slides/slides.ts @@ -22,7 +22,7 @@ import {Scroll} from '../scroll/scroll'; * ```ts * @Page({ * template: ` - * + * * *

Thank you for choosing the Awesome App!

*

@@ -58,6 +58,7 @@ import {Scroll} from '../scroll/scroll'; * @property {Number} [zoomDuration] - how long it should take to zoom a slide * @property {Number} [zoomMax] - the max scale an slide can be zoomed * @property {Any} (change) - expression to evaluate when a slide has been changed + * @property {Any} (move) - expression to evaluate when a slide is moving * @demo /docs/v2/demos/slides/ * @see {@link /docs/v2/components#slides Slides Component Docs} * @@ -214,6 +215,11 @@ export class Slides extends Ion { */ @Output() change: EventEmitter = new EventEmitter(); + /** + * @private + */ + @Output() move: EventEmitter = new EventEmitter(); + /** * @private * @param {ElementRef} elementRef TODO @@ -282,6 +288,10 @@ export class Slides extends Ion { options.onLazyImageReady = (swiper, slide, img) => { return this.options.onLazyImageReady && this.options.onLazyImageReady(swiper, slide, img); }; + options.onSliderMove = (swiper, e) => { + this.move.emit(swiper, e); + return this.options.onSliderMove && this.options.onSliderMove(swiper, e); + }; setTimeout(() => { var swiper = new Swiper(this.getNativeElement().children[0], options);