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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -