javascript - Angular ng-repeat render items on top of list but keeping scroll to currently visible item -
i have following problem: want make items visible in beginning of ng-repeat hidden. when this, list of items becomes longer , elements rendered before move down. want keep scroll position @ item focused before showed new items.
<div ng-repeat="item in items | limitto:listendindex" ng-if="$index >= liststartindex">
this code of template. controller decreases value of liststartindex make new items visible. ideas appreciated. thank you!
Comments
Post a Comment