Searching and Sorting in Ionic Infinite Scroll


#1

Hi!

I am using Ionic Infinite Scroll - http://ionicframework.com/docs/api/directive/ionInfiniteScroll/
on-infinite event, I query CBL view and load more 50 data.
How can I apply searching and sorting on Infinite ionic list?


#2

While you could do filtering on the front end, it would probably only be a good idea with a small amount of data, otherwise things could get slow.

It’d be simpler and more efficient to filter the data ahead of time on the server. From there you could set up some sort of pagination on the API to feed your Ionic app the data 50 items at a time.