title: Angular ng-repeat with array length condition
body: <p>I want the <code>ng-repeat</code> to <em>run</em> only when the <code>photos.length &gt; 1</code> </p>
  
  <p>Doing this doesn't seem to work:</p>
  
  <p><code>&lt;div ng-repeat="thumb in photos | photos.length &gt; 1"&gt;</code></p>
  
  <p>Is there any quick trick / elegant way to do this? I just need to check for array length and nothing else fancy.</p>
  
  <p>I would hate to duplicate the array to another array by doing something like this</p>
  
  <pre><code>if (oldArray.length &gt; 1)
   newArray = photos;
  else
   newArray = [];
  </code></pre>
  
  <p>...and then do <code>ng-repeat</code> on <code>newArray</code>. This seems inefficient.</p>
  
  <p>Thanks.</p>