When trying to complete the refresher, I’m getting the error TypeError: refresher.complete is not a function
.
The refresher does call my typescript method and the spinner shows on the page. I just can’t complete it.
Has the refresher changed in V4? I couldn’t find a reference to it in the beta docs.
I have the following code:
.html:
<ion-refresher slot="fixed" (ionRefresh)="refreshAppointments($event)">
<ion-refresher-content pullingIcon="arrow-dropdown" pullingText="Pull to refresh" refreshingSpinner="circles" refreshingText="Refreshing...">
</ion-refresher-content>
</ion-refresher>
.ts:
import { Refresher } from '@ionic/angular';
...
async refreshAppointments(refresher: Refresher) {
await this.loadAppointments(this.accordionIdx);
refresher.complete(); // Error here TypeError: refresher.complete is not a function
}