[英]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. 我是AngularJS的新手,我正在尝试使用Angular和IonicFramework开发一个简单的App。 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.
我使用$ http.get()从远程服务器加载一些数据,这很有效,但我想优化它,所以我不想在开始时加载所有条目。 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. 例如,我加载了10个条目,如果用户在最后一个条目之后向下滚动它应该自动刷新并加载更多条目。 I hope someone can help me to do something like this.
我希望有人可以帮助我做这样的事情。
Thanks 谢谢
您可以使用ngInfiniteScroll模块来访问http://binarymuse.github.io/ngInfiniteScroll/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.