title: ng-repeat on one of two arrays based on condition
body: <p>Say I have</p>
  
  <pre><code>&lt;div ng-if="groupA.length &gt; 0" ng-repeat="element in groupA"&gt; .... &lt;/div&gt;
  &lt;div ng-if="groupA.length == 0" ng-repeat="element in groupB"&gt; .... &lt;/div&gt;
  </code></pre>
  
  <p>Both divs are exactly the same HTML except for the if conditions and the fact that they repeat on two different groups. Am I able to join them together in one div element? I.e. <code>&lt;div ng-repeat="element in (groupA || groupB)"&gt; ... &lt;/div&gt;</code></p>
  
  <p>I know I can check in the controller to and have a condition there like <code>groupC = groupA.length &gt; 0 ? groupA : groupB</code> and have in the html <code>&lt;div ng-repeat="element in groupC&gt; ... &lt;/div&gt;</code> but I was wondering if there's a way to do it on HTML directly?</p>