can someone assist in rectifying the code issue? http://jsfiddle.net/rrnJc/
this module features a dynamic news list which can be scrolled through.
the current setback lies within the template logic:
<li ng-repeat="item in news" ng-show="$index >= currentPosition && $index <= (currentPosition + qntVisibleRecords)">
this needs improvement.
my aim is to have the visible section of the news list handled in the controller (via the function $scope.newsVisible). subsequently, this should be reflected and executed in the template as follows:
<li ng-repeat="item in newsVisible">
<span class="date">{{item.date}}</span>
<span class="title">{{item.title}} - {{$index}}</span>
</li>