Ionic2 Angular2 Question

So my json backend API lists 10 items per page. How would i approach it using this.http.get ?
Should i use infinite scroll? but how would i pass pagination info. Any example code would really help me learn.


you have to store current page in your javascript code… so everytime infinite scroll calls your loading function you need to increase your page number and concat the exiting array entries with the new one for the next page.

nothing special

1 Like

i’m following this observer method for my services, can you guide me how a http pagination/sort/filter querysets would work there?

Or is it better to use sort/filtering client side using filter pipe?