How to get Collection-repeat launching a function on each item displayed on the screen


I would like to check on my database, for each diplayed items on the screen, if a value is true.

I added in the controller :

  $scope.display = function(name){

and in the view


But it’s not working properly. I get a lot of console record and the loading of the view…

Can anyone help me ?
Thank you very much.