Relative Content

Tag Archive for angularionic-frameworkangular-standalone-components

How to add ion-item to the ion-list in custom order?

I have a batches of items that are received as user perform ion-infinite-scroll. What I want is to be able to add ion-list items upward rather than downward. I tried Ionic 2 how to make ion-list grow from bottom upwards? and few others but not working. I am open to using other ionic components to achieve the same effect.
Simply reversing the items in the list before displaying doesn’t work as each of item is array of its own which is already rendered. In below example, say [1, 2, 3] each of which are array of items received at different times and rendered in ion-list in the order received. so in above case, 1 is received first, 3 is received at later time.