【发布时间】:2018-08-20 21:57:37
【问题描述】:
嗨,这是我的 html 代码
<select style="width: 199px;margin-top: -9px;" id="ddlTypeCode" ng-model="selectedCountryCode" ng-change="locationChange(selectedCountryCode)" name="ddlTypeCode" class="form-control">
<option ng-repeat="Country in CountryList track by $index" value="{{Country}}"
ng-selected="Country == 'India'">
{{Country}}
</option>
CountryList 没有任何空值,但在 UI 下拉菜单中显示一个空条目。请建议
【问题讨论】:
标签: html angularjs angularjs-ng-repeat