Skip to content

Commit

Permalink
fix(slides): Removing a slide via *ngIf now properly removes the slid…
Browse files Browse the repository at this point in the history
…e and the bullet from the pager. (closes #6651)
  • Loading branch information
Zachary Keeton committed May 25, 2016
1 parent d2ef2b1 commit dbe54b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/slides/slides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

/**
Expand Down

0 comments on commit dbe54b5

Please sign in to comment.