如何让ngInfiniteScroll在Bootstrap模式中运行?

Hie*_*ran 4 angularjs angular-ui angular-ui-bootstrap nginfinitescroll

我需要在模态中使用ngInfiniteScroll作为库,但它似乎无法工作.它不接受在此Bootstrap UI模式中滚动.你知道怎么做这个,请告诉我!谢谢. 在此输入图像描述

https://github.com/sroze/ngInfiniteScroll

http://angular-ui.github.io/bootstrap/#/modal

小智 6

在图像容器中使用以下属性,该属性位于角度ui模态内.

infinite-scroll-container="'.modal'"
Run Code Online (Sandbox Code Playgroud)

这应该工作.

它没有记录,但要获得更多信息,请访问此主题 https://github.com/sroze/ngInfiniteScroll/pull/7