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


#1

Hello,

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){
    console.log("display",name);
  }

and in the view

 {{display(contact.displayName)}}

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.