Angularjs下拉文本需要显示为下拉列表的标题

Angularjs下拉文本需要显示为下拉列表的标题,angularjs,dropdownbox,Angularjs,Dropdownbox,我需要在下拉框的标题标签中显示angularjs下拉列表的文本而不是值。我的角度代码如下: <select id="inputID" name="inputName" ng-options="item.value as item.display for item in genders" ng-model="model.Base.currentRecord.value.Code.value" class="form-control input-sm"> <o

我需要在下拉框的标题标签中显示angularjs下拉列表的文本而不是值。我的角度代码如下:

  <select id="inputID" name="inputName" 
  ng-options="item.value as item.display for item in genders" 
  ng-model="model.Base.currentRecord.value.Code.value" class="form-control input-sm">
   <option value="">Select...</option> </select>
由于下拉列表是动态生成的,因此选项的值和选项中的文本是不同的。在title标记中,我能够获得title={{model.Base.currentRecord.value.Code.value}的值,但我需要的是文本而不是值

有人知道吗?

这样行吗


你为什么不在性别上重复一次,自己创造选择呢?
<select id="inputID" title={{model.Base.currentRecord.value.Code.display}} name="inputName" ng-options=" item.display for item in genders" 
ng-model="model.Base.currentRecord.value.Code" class="form-control input-sm">
  <option value="">Select...</option>
</select>
<strong>Selected value:</strong> {{model.Base.currentRecord.value.Code.value}}