1

我有一个场景,其中有一个带有建议列表的编辑输入,当我在 ng-change 上输入条目时,列表会显示相关建议,如果没有可用数据则显示异常。但是在chrome中我遇到了一个问题,如果没有搜索(ng-change)本身,带有输入的列表就会显示“无数据异常”

我有这样的事情:

<div ng-show="show on a condition to edit">
  <input  ng-change="callForservicetoDisplayList()" ng-model="enteredValue"/>
  <ul ng-show="only when callForservicetoDisplayList function returns value">
    <li ng-repeat="outputFromthe callForservicetoDisplayList"></li>
  </ul>
</div>

此处列表在第一次编辑时出现在 chrome 中,第二次工作正常!

4

1 回答 1

0

这是一个错误!所以这应该在最新的 1.4 (1.4.9) 中修复。您使用的是过时的版本

https://github.com/angular/angular.js/issues/13380

于 2016-05-12T08:20:19.433 回答