javascript 离子分页
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32255155/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Pagination in ionic
提问by Rohit Deshmukh
I am working on ionic framework for app development. I can fetch the list of customer from db but list is large that's why i want to load that list slowly like want to display data in some portion then again display next data like Lazy loading can anyone please suggest me the various options for this or any links or examples for my problem
我正在研究用于应用程序开发的离子框架。我可以从数据库中获取客户列表,但列表很大,这就是为什么我想缓慢加载该列表,比如想在某些部分显示数据,然后再次显示下一个数据,比如延迟加载,任何人都可以给我建议这个或任何的各种选项我的问题的链接或示例
thanks in advance
提前致谢
回答by Mudasser Ajaz
Use ionic infinite scroll, it is used to handle pagination , here is documentation for the infinite scroll https://ionicframework.com/docs/v1/api/directive/ionInfiniteScroll/
使用 ionic 无限滚动,它用于处理分页,这里是无限滚动的文档https://ionicframework.com/docs/v1/api/directive/ionInfiniteScroll/
Here is a good link for practical understanding: http://sunnycyk.com/2014/02/ionic-framework-infinite-scrolling/
Purpose of ionic infintie scroll is to load only that amount of items which fit to screen, and scroll to load more.The ionInfiniteScroll directive allows you to call a function whenever the user gets to the bottom of the page or near the bottom of the page.
这是一个用于实际理解的好链接:http:
//sunnycyk.com/2014/02/ionic-framework-infinite-scrolling/ ionic infintie scroll 的目的是仅加载适合屏幕的项目数量,然后滚动到加载更多。 ionInfiniteScroll 指令允许您在用户到达页面底部或接近页面底部时调用函数。