Problem: infinite scroll starts loading all pages at once, instead of waiting for a user scrolling to the page bottom.
Setup: AngularJS 1.3.17 Materials Design 0.10.0 Infinite scroll script: https://github.com/sroze/ngInfiniteScroll Following this demo: http://sroze.github.io/ngInfiniteScroll/demo_async.html
The page with the infinite scroll is inside the nested view.
HTML directive used like this:
<div class="row row-sm">
<div infinite-scroll='nextPage()' infinite-scroll-disabled='busy' infinite-scroll-distance='0' class="m-l-n m-r-n">
<div class="col-sm-12" ng-repeat="post in posts" ng-init="parentIndex = $index">
- Symptoms:
- it starts firing requests in sequence until no more data is coming from API. Impressions is that it thinks that we hit the page bottom all the time = a signal to load one more page.
- the same code was working perfectly before migration to Material Design (from 100% Bootstrap)
- with the ng-repeat contains class="col-sm-12", if removed OR if I set style="float:none" it loads the first page only, BUT does not react on reaching the page bottom any more.
Also, I do not need a windowed-solution (this one works fine), rather - Facebook type, when we actually need to reach a page bottom, not to scroll in a limited space.
Please let me know what kind of additional information you may need.
Guys, please help!! :)
Thank you!