【发布时间】:2013-01-16 03:31:40
【问题描述】:
在选项上使用角度指令 ng-selected 时,绑定模型在您手动更改选择之前不会更新。这是设计好的吗?
<div ng-app ng-init="colors=['red', 'yellow', 'blue']">
<select ng-model=selectedElement>
<option ng-repeat="color in colors" value="{{color}}" ng-selected="$last">{{color}}</option>
</select>
selectedElement: {{ selectedElement }}
</div>
【问题讨论】:
标签: angularjs