How to catch the ng-repeat end event in the controller? There is this HTML code:

 <input type='text' ng-model="searchTel.id_device_type"> <div ng-repeat="tel in tel_list | filter:aaaa:tel"> <div class="item"> <img src="images/{{tel.url_img_tel}}" class="img-content"> <div class="item-content"> <p >{{tel.code_tel}}</p> <p >{{tel.name_tel}}</p> </div> </div> </div> 

in the controller

 $scope.aaaa=function(tel) { if($scope.searchTel.id_device_type==0) { return true; } else { if(tel.id_device_type==$scope.searchTel.id_device_type) { return true; } else { return false; } } } 

I tried:

 $scope.$on('ngRepeatFinished', function(ngRepeatFinishedEvent) { console.log(ngRepeatFinishedEvent); }); 

Not caught

  • one
    Can check through '$ last' - Bald
  • one
    what for??? usually there is no need to do it - Grundy
  • @Grundy I filtered the list, but I need to show it not immediately, but gradually, for example, by 20 entries. Initially, everything is hidden. At the end, I will show these 20, after pressing the "show more" button, the next 20 will be shown without hiding these, etc. - Geri4
  • 3
    then you don't need this event, you need a limitTo filter - which you will ask how much exactly you need to show now - Grundy

0