问题描述
我有一个视图,其中可以有大量项目供用户滚动浏览,我想实现无限滚动以启用内容的渐进式加载.
I have a view where there can be a large number of items for the user to scroll through and I'd like to implement infinite scrolling to enable progressive loading of the content.
看起来有些人已经完成了分页 但谷歌没有提出任何人讨论他们如何使用 Ember/Ember Data 完成无限列表.任何人都已经解决了这个问题并且有一篇博文/示例代码可以分享?
It looks like some folks have done pagination but Google doesn't bring up anyone discussing how they've done infinite lists with Ember/Ember Data. Anyone already worked through this and have a blog post/example code to share?
推荐答案
你知道新发布的 Ember.ListView 组件吗?
Were you aware of the newly released Ember.ListView component?
https://github.com/emberjs/list-view
它是在二月份的旧金山 Ember 聚会上宣布的.这是 Ember Core 开发人员之一 Erik Bryn 关于使用它的幻灯片:
It was announced at the February San Francisco Ember Meetup. Here's a slidedeck from Erik Bryn, one of the Ember Core developers about using it:
http://talks.erikbryn.com/ember-list-view/
这篇关于使用 ember.js 无限滚动(延迟加载)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!