Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Commit

Permalink
Fixing broken loop after migration to v9.0.0 (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
bombergio authored Feb 24, 2020
1 parent b3741d2 commit 69753b7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@angular/platform-browser-dynamic": "^9.0.0",
"core-js": "^3.6.0",
"rxjs": "^6.5.0",
"swiper": "^5.3.0",
"swiper": "^5.3.1",
"zone.js": "^0.10.0"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions projects/lib/src/lib/swiper.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ export class SwiperComponent implements AfterViewInit, OnDestroy {
@Output('slideChangeTransitionEnd' ) S_SLIDECHANGETRANSITIONEND = new EventEmitter<any>();
@Output('slideChangeTransitionStart' ) S_SLIDECHANGETRANSITIONSTART = new EventEmitter<any>();

@Output('beforeLoopFix' ) S_BEFORELOOPFIX = new EventEmitter<any>();
@Output('loopFix' ) S_LOOPFIX = new EventEmitter<any>();

constructor(private zone: NgZone, private cdRef: ChangeDetectorRef,
@Inject(PLATFORM_ID) private platformId: Object,
@Optional() @Inject(SWIPER_CONFIG) private defaults: SwiperConfigInterface) {}
Expand Down
3 changes: 3 additions & 0 deletions projects/lib/src/lib/swiper.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export class SwiperDirective implements AfterViewInit, OnDestroy, DoCheck, OnCha
@Output('slideNextTransitionStart' ) S_SLIDENEXTTRANSITIONSTART = new EventEmitter<any>();
@Output('slideChangeTransitionEnd' ) S_SLIDECHANGETRANSITIONEND = new EventEmitter<any>();
@Output('slideChangeTransitionStart' ) S_SLIDECHANGETRANSITIONSTART = new EventEmitter<any>();

@Output('beforeLoopFix' ) S_BEFORELOOPFIX = new EventEmitter<any>();
@Output('loopFix' ) S_LOOPFIX = new EventEmitter<any>();

constructor(@Inject(PLATFORM_ID) private platformId: Object, private zone: NgZone,
private elementRef: ElementRef, private differs: KeyValueDiffers,
Expand Down

0 comments on commit 69753b7

Please sign in to comment.