Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Ion-infinite-scroll's ionInfinite not firing

$
0
0

Try as I might, I cannot get infinite scroll working. I have tried all kinds of different thresholds but still ionInfinite does not fire.

HTML:

<ion-content>

<div *ngIf="!isLoadingError">
    <ion-list *ngIf="items.length > 0">
        <ion-item *ngFor="let item of items" (click)="nav(item)" routerDirection="forward"
                  routerLinkActive="active">
            <ion-thumbnail slot="start">
                <!--                <img *ngIf="item.imageURIs[0]" [src]="item.imageURIs[0]">-->
                <!--                <ion-skeleton-text *ngIf="!item.imageURIs[0]"></ion-skeleton-text>-->
                <ion-skeleton-text></ion-skeleton-text>
            </ion-thumbnail>
            <ion-label>
                <h3>{{item.name}}</h3>
                <p>
                    {{item.desc}}
                </p>
                <p>
                    {{formatPriceString(item.price, 'KRW')}}
                </p>
            </ion-label>
        </ion-item>
    </ion-list>

    <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
        <ion-infinite-scroll-content
                loadingSpinner="bubbles"
                loadingText="Loading more items...">
        </ion-infinite-scroll-content>
    </ion-infinite-scroll>

</div>
</ion-content>

TS:

export class HomePage {

@ViewChild(IonInfiniteScroll) infiniteScroll: IonInfiniteScroll;



constructor() {

}

doInfinite(e) {
    this.getItems(e);
}

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



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