I have a code .I am trying to apply the infinte scroll but its not performing.
Can any one help me to solve this problem.It displaying all numbers,even if i scroll down its not performing like infine scrol.
//HTml file
<style>
#fixed {
height: 400px;
overflow: auto;
}
</style>
<body ng-controller="controller">
<div id="fixed" infinite-scroll="scrolling()" infinite-scroll-distance='2'>
<li ng-repeat="i in items" >{{i.id}}</li>
<img src="http://jimpunk.net/Loading/wp-content/uploads/loading1.gif" ng-hide="!showLoader"/>
</div>
</body>
</html>
//js file
var app=angular.module("myapp",['infinite-scroll']);
app.controller("controller",['$scope',function($scope){
$scope.items=[];
var counter=0;
$scope.showloader=false;
$scope.scrolling=function(){
for(var i=0;i<500;i++)
{
$scope.items.push({id:counter});
counter++;
/*console.log({{items}});*/
}
$scope.showloader=true;
};
$scope.scrolling();
}]);