diff --git a/playground/angular/src/app/home/home.component.html b/playground/angular/src/app/home/home.component.html index 774694959..d235aad8b 100644 --- a/playground/angular/src/app/home/home.component.html +++ b/playground/angular/src/app/home/home.component.html @@ -1,4 +1,19 @@
+
+

Nested

+ + + test {{ i + 1 }} + + test 5 + + + test vertical 1 + test vertical 2 + + + +

Default: Not in NgZone

diff --git a/src/angular/src/swiper.component.ts b/src/angular/src/swiper.component.ts index ba9fdd683..5e5a7ef72 100644 --- a/src/angular/src/swiper.component.ts +++ b/src/angular/src/swiper.component.ts @@ -416,7 +416,7 @@ export class SwiperComponent implements OnInit { this._setElement(el, this.pagination, 'pagination'); } _paginationElRef: ElementRef; - @ContentChildren(SwiperSlideDirective, { descendants: true, emitDistinctChangesOnly: true }) + @ContentChildren(SwiperSlideDirective, { descendants: false, emitDistinctChangesOnly: true }) slidesEl: QueryList; private slides: SwiperSlideDirective[];