wrap swiper init code in set timeout

This commit is contained in:
Eddie Lau 3dd13
2016-01-19 11:20:42 +08:00
parent 2d10593dce
commit 2fc07375a7

View File

@ -186,9 +186,10 @@ export class Slides extends Ion {
return this.options.onLazyImageReady && this.options.onLazyImageReady(swiper, slide, img); return this.options.onLazyImageReady && this.options.onLazyImageReady(swiper, slide, img);
}; };
setTimeout(() => {
var swiper = new Swiper(this.getNativeElement().children[0], options); var swiper = new Swiper(this.getNativeElement().children[0], options);
this.slider = swiper; this.slider = swiper;
});
/* /*
* TODO: Finish this * TODO: Finish this