Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs ng hide/ng show中的ng hide/ng show在**chrome**中第一次触发时工作不正常,第二次它反映的很好_Angularjs_Google Chrome_Ng Show - Fatal编程技术网

Angularjs ng hide/ng show中的ng hide/ng show在**chrome**中第一次触发时工作不正常,第二次它反映的很好

Angularjs ng hide/ng show中的ng hide/ng show在**chrome**中第一次触发时工作不正常,第二次它反映的很好,angularjs,google-chrome,ng-show,Angularjs,Google Chrome,Ng Show,我有一个场景,其中有一个带有建议列表的编辑输入,当我在ng change上输入时,列表会显示相关建议,如果没有可用数据,则会显示exception。但在chrome中,我遇到了一个问题,即如果没有搜索(ng更改)本身,带有输入的列表将显示“无数据异常” 我有这样的经历: <div ng-show="show on a condition to edit"> <input ng-change="callForservicetoDisplayList()" ng-model=

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

我有这样的经历:

<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中显示,第二次可以很好地工作

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


您能显示所有代码吗?通过最初将列表设置为“显示无”来解决此问题,谢谢:)