4

I'm in need of using ngInfiniteScroll for a gallery in a modal, but it seems not to work. It does not accept to scroll in this Bootstrap UI modal. Do you know any way to do this, pls let me know! Thanks. enter image description here

https://github.com/sroze/ngInfiniteScroll

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

neoswf
  • 4,269
  • 4
  • 35
  • 52
Hieu Tran
  • 187
  • 3
  • 10

1 Answers1

6

Use following attributes in your image container which is inside angular ui modal.

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

This should work.

Its not documented, but to get more information visit this thread https://github.com/sroze/ngInfiniteScroll/pull/7

Durgesh
  • 398
  • 3
  • 8
  • For those who still can't fix it - this comment helped me https://github.com/sroze/ngInfiniteScroll/pull/7#issuecomment-42402768 Also I've updated ngInfiniteSroll to 1.3.0 (note that 1.3.0 is not available from their site, but you can download it from https://github.com/sroze/ngInfiniteScroll/releases/tag/1.3.0 ) – andrfas Mar 05 '17 at 21:51