diff --git a/src/components/slides/slides.ts b/src/components/slides/slides.ts index 6d701181613..6f6c767099f 100644 --- a/src/components/slides/slides.ts +++ b/src/components/slides/slides.ts @@ -902,13 +902,17 @@ export class Slide { constructor( elementRef: ElementRef, - @Host() slides: Slides + @Host() private slides: Slides ) { this.ele = elementRef.nativeElement; this.ele.classList.add('swiper-slide'); slides.rapidUpdate(); } + + ngOnDestroy() { + this.slides.rapidUpdate(); + } } /**