0
我收到這個錯誤,當我試圖實現選擇下拉列表已經在這裏運行。 http://flatfull.com/themes/flatkit/html/form.select.html不安全的錯誤即將在angularjs
我的HTML部分是
<div class="col-sm-6 dr_search" tabindex="-1" id="dr_search">
<ui-select ng-model="user_prefix.selected" theme="bootstrap">
<ui-select-match placeholder="Title">{[{$select.selected.data_key_value}]}</ui-select-match>
<ui-select-choices repeat="item in people | filter: $select.search" ng-model="user_prefix">
<div ng-bind-html="item.data_key_value | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
</div>
的Ajax調用加載時的響應低於
{"name_prefix":[{"data_key_value":"Mr."},{"data_key_value":"Mrs."}]}
同時加載沒有錯誤,但是當我點擊搜索或嘗試選擇此錯誤即將到來。
我分配響應從阿賈克斯獲得
$scope.people = data.name_prefix;
感謝它爲我工作:) – Drone