diff --git a/src/lib/swiper.component.ts b/src/lib/swiper.component.ts index 071ab81..0cf2a75 100644 --- a/src/lib/swiper.component.ts +++ b/src/lib/swiper.component.ts @@ -107,9 +107,9 @@ export class SwiperComponent implements OnInit, OnDestroy { this.mo = new MutationObserver((mutations) => { this.updateClasses(); }); - } - this.mo.observe(this.swiperSlides.nativeElement, { childList: true }); + this.mo.observe(this.swiperSlides.nativeElement, { childList: true }); + } }); }