<select id="id_field{{$index+1}}" name="field{{$index+1}}"
        ng-model="currentFilter.field"
        ng-change="changeFilter(currentFilter)">
  <option ng-repeat="availablefilter in availablefilters"
          value="{{availablefilter}}"
          ng-selected="availablefilters[$index] == currentFilter.field">
    {{filterdefinitions[availablefilter].text}}
  </option>
</select>

&nbsp;

<select id="id_compare{{$index+1}}" name="compare{{$index+1}}"
        ng-model="currentFilter.compare">
  <option va