Hill30 / NGScroller

Bidirectional infinite scrolling with dynamic data load
MIT License
69 stars 20 forks source link

Starting the scroll at the end of the data? #67

Closed lmessinger closed 9 years ago

lmessinger commented 9 years ago

Hi

I wonder if ngInfiniteScroll support starting on different positions?

thanks Lior

mfeingold commented 9 years ago

This functionality can be easily implemented by adjusting the logic of the datasource get method, namely by changing how indexes supplied to the get call are mapped to the underlying dataset item indexes. For an example look here, specifically look at how the offset in the url is used