Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic 4 Refresher is not passing in the refresher object so I can't complete it

$
0
0

@scottieslg wrote:

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
}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>