@sehsah2020 wrote:
when pull to scroll
data get successfully but refresher not complete<ion-refresher slot=“fixed” (ionRefresh)=“doRefresh($event)”>
file.ts
GetAllData(){
this.SnaptService.getData(“members”,"").subscribe((res)=>{
this.members = res;
});this.SnaptService.getData("vipmembers","").subscribe((res)=>{ this.vipmembers = res; }); this.SnaptService.getData("mostviewmembers","").subscribe((res)=>{ this.mostview = res; });
}
doRefresh(refresher){
console.log(" doRefresh ");
this.GetAllData();
refresher.complete();
}
Posts: 1
Participants: 1