title: ng-repeat filter with condition angular js
body: <p>This is my code :</p>
  
  <pre><code> &lt;option ng-repeat="name in names" value="{{names.name}"&gt;
      {{names.name | limitTo:10 }}
   &lt;/option&gt;
  </code></pre>
  
  <p>How can I add a condition: </p>
  
  <pre><code>if( names.name.length &gt; 10) { 
       //add ... point after name displayed 
  }
  </code></pre>
  
  <p>to get result <code>&lt;option value="Alexander Bradley"&gt;Alexander ... &lt;/option&gt;</code></p>
  
  <p>Any ideas?</p>