我在[ignore]
选项上有ng-selected
的选择框。
ng-repeat
DOM在正确的选项标记上显示<div class="imageselectbox">
<select class="form-control" value="selectedItem" ng-model="selectedItem" ng-change="onItemSelected()" kdi-scroll-to kdi-offset-of={{offsetOf}} >
<option ng-repeat="item in items" value="{{item.imageValue}}" data-iconurl="{{item.imageDataURI}}"
ng-selected='{{selectedItem == item.imageValue}}'></option>
</select>
</div>
,但下拉列表显示第一个值。有人知道原因吗?