angularjs - 如何使 ngInfiniteScroll 在 Bootstrap 模式中运行?

标签 angularjs angular-ui angular-ui-bootstrap nginfinitescroll

我需要将 ngInfiniteScroll 用于模式中的画廊,但它似乎不起作用。不接受在此 Bootstrap UI 模式中滚动。你知道有什么方法可以做到这一点,请告诉我!谢谢。
enter image description here

https://github.com/sroze/ngInfiniteScroll

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

最佳答案

在 angular ui 模态内的图像容器中使用以下属性。

infinite-scroll-container="'.modal'"

这应该有效。

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

关于angularjs - 如何使 ngInfiniteScroll 在 Bootstrap 模式中运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22906371/

相关文章:

javascript - 怎样才能让这个功能更加高效呢?

javascript - 带有编码字符的 Angular cookie

css - 在移动设备上设计 angular-ui 评级指令

javascript - 如何仅在离开 AngularJS 状态时取消 $interval?

并排运行 angularjs 和 angular 应用程序时,CSS 不会编译

javascript - 如何使用对象和函数作为 Angular 过滤器的谓词

javascript - 如何在 Angular ui-router 状态下添加 guid 正则表达式

jquery select2 与 Bloodhound.js 建议引擎

angularjs - 如何从 angularjs 切换 Bootstrap 崩溃

javascript - 仅搜索 ui.bootstrap typeahead 中的特定字段