#StackBounty: #angular #typescript #ionic3 Is InfiniteScroll not working on ionic 3?

Bounty: 50

I’m having trouble implementing Infinite-scroll in my IONIC 3 application

This is my home.html:

{{ item?.nome }}

Rua: {{ item?.rua }} - {{ item?.numero }}

And this is my home.ts:

items: any[];

constructor(private afAuth: AngularFireAuth, private toast: ToastController,
    public navCtrl: NavController, public navParams: NavParams, public menu: MenuController) {
    this.initializeItems();
}

doInfinite(infiniteScroll) {
    console.log('Begin async operation');

    setTimeout(() => {
        for (let i = 0; i < 30; i++) {
            this.items.push( this.items.length );
        }

        console.log('Async operation has ended');
        infiniteScroll.complete();
    }, 500);
}

However this function works only at the end of my application.

enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.