loadmwfuthtft(){
let body = {
keyword : 'mwfuthtft'
};
this.postPvdr.postData(body, 'http:/siteaddress').subscribe(data => {
for(let mwfuthtftres of data.result){
this.mwfuthtftresed.push(mwfuthtftres);
}
});
}
doRefresh(refresher) {
let body = {
keyword : 'mwfuthtft'
};
this.postPvdr.postData(body, 'http://www.siteaddress').subscribe(data => {
for(let mwfuthtftres of data.result){
this.mwfuthtftresed.push(mwfuthtftres);
}
refresher.complete();
});
}
i can get data in loadmwfuthtft function successfully but when i use same code for ion-refresh page content doesn’t update. What is the correct way to refresh page content?
If there are no errors logged in your response, I would suggest checking if you need to manually trigger change detection in angular, to ensure the view is updated.
There is a post here, that may help with your issue. Personally I have used the changeDetectorRef.detectChanges() method occasionally.
actually in console there is a error message like below;
[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.