title: How can I call a function in a NG-repeat
body: <p>I have a little problem, i wish to call a function within ng-repeat and not like this example, the fucntion remove duplicate value, but it doesn't work as i wish, i mean it remove duplicate from the string and not from the loop. </p>
  
  <p>This is the HTML code, the "UNIQUE" function is to remove duplicate contents.</p>
  
  <pre><code>&lt;tr ng-repeat="compet in discipline.compets"&gt;
      &lt;td class="col-sm-2 feiCenterAlign"&gt;&lt;label&gt;{{unique(compet.eventCode)}}&lt;/label&gt;&lt;/td&gt;   &lt;td class="col-sm-2 feiCenterAlign"&gt;&lt;div class="col-sm-8 col-sm-offset-2"&gt;&lt;input type="number" ax-numeric-integer class="form-control input-sm" ng-model="compet.fhi.presented"&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;td class="col-sm-2 feiCenterAlign"&gt;&lt;div class="col-sm-8 col-sm-offset-2"&gt;&lt;input type="number" ax-numeric-integer class="form-control input-sm" ng-model="compet.fhi.box"&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;td class="col-sm-2 feiCenterAlign"&gt;&lt;div class="col-sm-8 col-sm-offset-2"&gt;&lt;input type="number" ax-numeric-integer class="form-control input-sm" ng-model="compet.fhi.notAccepted"&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;td class="col-sm-2 feiCenterAlign"&gt;&lt;div class="col-sm-8 col-sm-offset-2"&gt;&lt;input type="number" ax-numeric-integer class="form-control input-sm" ng-model="compet.fhi.withdrawn"&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;td class="col-sm-2 feiCenterAlign"&gt;&lt;div class="col-sm-8 col-sm-offset-2"&gt;&lt;input type="number" ax-numeric-integer class="form-control input-sm" ng-model="compet.fhi.accepted"&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>And this is the "UNIQUE" function code .   </p>
  
  <pre><code>unique: function(array) { 
          var len = array.length; 
          var out = [];
          var obj = {};
          for (var i = 0; i &lt; len; i++) {
              obj[array[i]] = 0;
  
          }
          for (var j in obj) { 
              out.push(j);
          }
  
          return out;
      },
  </code></pre>
  
  <p>thanks so much for your helps</p>
  
  <p>PS : this is a link for a screenshot : hpics.li/d44d002 .
  the RED cercle is the "compet.eventCode" .
  the GREEN cercle is the value, and i want to display only once every duplicated value.</p>