For my project I'm using ng-FTScroller (https://github.com/ftlabs/ftscroller) and I would also like to implement an image lazy loader module. I've tried the few I've found, but they work with the body (or window) and I'm not able to use them with the FTScroller DIV (in my case it contains the ng-view).
答案 0 :(得分:0)
您可以使用此库:https://github.com/GeneralElectric/winchjs
它会侦听滚动和动画事件,以便重新检查图像是否在视口中(或接近)并触发它加载。您还可以选择在ngRouteChange事件后触发手动重新检查。