スクリプトの修正にご協力ください。 http://jsfiddle.net/rrnJc/
これはニュースの動的リストです。スクロールできます。
ロジックがテンプレートにあるという問題:
<li ng-repeat="item in news" ng-show="$index >= currentPosition && $index <= (currentPosition + qntVisibleRecords)">
これは正しくないです。
コントローラーにあるニュースのリストの可視部分を chtby したいと思います (関数 $scope.newsVisible 内)。テンプレート設計の同じ結論で、これを提供します。
<li ng-repeat="item in newsVisible">
<span class="date">{{item.date}}</span>
<span class="title">{{item.title}} - {{$index}}</span>
</li>