当我尝试在选择下拉选项时更改unusedEmailArray
时,Angular会在HTML中添加<option value="? string:work?"></option>
。
<div ng-repeat="email in emails" >
<div>
<select type="text" id="emailType" name="email_type_{{$index}}"
placeholder="Type" ng-model="email.email_type" ng-model-options="{updateOn:'default blur'}" ng-change="showChangesMade(email_type_{{$index}})" >
<option value="{{email.email_type}}" ng-selected="email.email_type.length>0">{{email.email_type}}</option>
<option ng-repeat="unusedArr in unusedEmailArray" value="{{unusedArr}}">
{{unusedArr}}
</option>
</select>
</div>