javascript - Prevent page scroll in angular model update -


i had interval refresh model in angular:

$interval(function(){         itemsdata.getitemsdata().then(function(data){             $scope.items = data;         });     }, 1000); 

data getted json api. , elements added page ng-repeat. on each second page scroll top. question is: how prevent it.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -