角度添加<option value =“?string:abc?”> </option>

时间:2017-10-09 14:00:58

标签: html angularjs select angularjs-ng-repeat ng-options

当我尝试在选择下拉选项时更改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>

0 个答案:

没有答案