-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Ionic version:
"@ionic/angular": "^4.7.1",
"@angular/core": "~8.1.2",
"@angular/forms": "~8.1.2",
I have three tabs use the one content together as bellow:
<ion-content> <ng-container [ngSwitch]="true"> <ng-container *ngSwitchCase="selectedTab == constant.ReminderpanelValue.Overview"> <app-reminder-overview [reminder]="reminders"></app-reminder-overview> </ng-container> <ng-container *ngSwitchCase="selectedTab == constant.ReminderpanelValue.Overdue || selectedTab == constant.ReminderpanelValue.Today || selectedTab == constant.ReminderpanelValue.Future"> <ion-refresher slot="fixed" (ionRefresh)="refresh($event)"> <ion-refresher-content pullingText="{{ 'COMMON.PULL_TO_REFRESH' | translate }}" refreshingSpinner="crescent"> </ion-refresher-content> </ion-refresher> <app-reminder-list [reminders] = "reminder?.Reminders" > </app-reminder-list> <ion-infinite-scroll threshold="200px" (ionInfinite)="loadMore($event)"></ion-infinite-scroll> </ng-container> </ng-container> </ion-content>
loadMore(event) {
this.getReminder().finally(() => event.target.complete());
}
the first open screen that it work but when switch to another tab then ionInfinite event not effect.