Load more messages Whatsapp behavior scroll

Hi,

Not sure it will help you but on the basis on what I have described in this post: Collection-repeat + ion-infinite-scroll performances on beta 13

I have an unlimited list supporting several thousands records and i’m filling on demand more items in my collection when the user reaches the bottom of the screen.

i have a scope array that is initially empty:

 $scope.libraryItems = [];

in my loadMore() function,I’m making async http call to retrieve more data and just appending additional items when the users reaches the bottom using something like

    // add to the visible collection
    $scope.libraryItems.push(cachedItem);

By doing so and by using collection-repeat instead of ng-repeat (which couldn’t stand over 200 items and offering good scrolling performances) the scrolling is smooth and keeps the good position even when new items are being added and while modifying the collection on demand…