Ionic reload infinite list remain in last position


#1

Hi, I have Page1 and have a infinite scroll list, and when I scroll to somewhere on the list, i click it will go to Page2 to do somethings. Then Page2 will pop and Page1 will reload to get a updated data. So my problem is that when I reload the Page1, it goes to the top of the infinite list. How and what is the approach to remain in last position? Thanks a lot.


#2

The problem is there in your approach, When pop from Page 2 to Page1 you are updating the list so it will always goes to the initial state of the view. So the possible work around is not to get the updated data while coming back to the Page 1 instead you can use the infinite scroll at top for getting newly added data and scroll down for loading more number of data which are already there.