angular control

select

1.

<select ng-model="selectedValue" ng-options="operator.value as operator.displayName for operator in operators">

</select>

  

2.

<select ng-model="selectedValue">

    <option ng-selected="{{operator.value ==selectedValue}}"

            ng-repeat="operator in operators"

            value="{{operator.value}}">

      {{operator.displayName}}

    </option>

</select>

 

你可能感兴趣的:(Angular)