简体   繁体   中英

AngularJS - Load more data from remote server at bottom of page

I am new to AngularJS and I am trying to develop a simple App with Angular and IonicFramework. I load some data from a remote server with $http.get() and this works well, but I want to optimize that, so I don't want to load all entries at start. I want to load more results from server, if the user is at the end of the page.

Eg I load 10 entries, if the user scrolls down after the last entry it should refresh automaticly and load more entries. I hope someone can help me to do something like this.

Thanks

您可以使用ngInfiniteScroll模块来访问http://binarymuse.github.io/ngInfiniteScroll/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM