Hy guys,
in my page I have an ion-refresher and also an infinite scroll:
...
<ion-content>
<ion-refresher (ionRefresh)="refresh($event)">
<ion-refresher-content></ion-refresher-content>
</ion-refresher>
<div>
<div class="image__square" *ngFor="let photo of photos">
<img src="..."/>
</div>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</ion-infinite-scroll>
</div>
</ion-content>
...
then in ts file:
...
refresh(refresher) {
this.getEvent() --> getEvent returns and populates a variable event...
.then(
() => {
refresher.complete();
}
);
}
...
doInfinite(infiniteScroll) {
setTimeout(() => {
this.photoService.getPhotosEvent(this.event).then(
(contents) => {
contents.forEach(photo => {
this.photos.push(photo);
});
},
(error) => {
}
);
infiniteScroll.complete();
}, 500);
}
In a few words I have a refresher to get again the first part of the photos of the event. And at the end I have an inifite scroll
My issue is on iOS device: when I pull down to refresh, or I reached the inifinite scroll, the loading img (I mean the spinner of the inifinite scroll) is shown for ever… it’s never hide…
What I wrong
Thanks