title: AngularJS different size and value select boxes in ng-repeat
body: <p>I know where the issue is, but so far my attempts to solve the problem were not successful. Any help is appreciated.</p>
  
  <p>I am creating a table from JSON data in an ng-repeat loop. One of the table columns represents select boxes, which are of different values and sizes. This select statement is inside the ng-repeat block.</p>
  
  <pre><code>               &lt;tr ng-repeat="unit in unitsData"&gt;
                      &lt;td&gt;{{unit.unitName}}&lt;/td&gt;
                      &lt;td&gt;{{unit.unitType}}&lt;/td&gt;
                      &lt;td&gt;
                          &lt;select class="form-control" ng-model="unit.unit" ng-options="option.value as option.name  for option in getUnitListForUnitType(unit.unitType)"&gt;&lt;/select&gt;
                      &lt;/td&gt;
                 &lt;/tr&gt;
  </code></pre>
  
  <p>I am getting this error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting! </p>
  
  <p>Based on Angular documentation for select boxes, the problem comes from   getUnitListForUnitType function, which I created in the controller to return different lists based on the provided parameter. Not sure how this code could be corrected.</p>