Javascript AngularJS uib typeahead似乎会中断页面其余部分的插值
我遇到了AngularJS 1.50的问题。插值在以下代码后停止工作Javascript AngularJS uib typeahead似乎会中断页面其余部分的插值,javascript,angularjs,angular-ui-bootstrap,Javascript,Angularjs,Angular Ui Bootstrap,我遇到了AngularJS 1.50的问题。插值在以下代码后停止工作 <input type="text" class="form-control" id="search" name="search" placeholder="{{ shouldInterpolateButDoesnt }}" typeahead-on-select="aGreatFunction($item)" ng-model="selectedDog" u
<input type="text" class="form-control" id="search" name="search"
placeholder="{{ shouldInterpolateButDoesnt }}"
typeahead-on-select="aGreatFunction($item)"
ng-model="selectedDog"
uib-typeahead="dog.label for dog in dogList | filter:$viewValue" typeahead-min-length="1"/>
解决了这个问题。在阅读了每个人对我的原始帖子的评论后,我深入我的控制器寻找丢失的
exp
属性
它不在那里
我搜索了undefined错误的无法读取属性“exp”,并找到了它。其他人也有类似的问题,许多人说,停用巴塔朗支线解决了这个问题。一位用户发布了一个屏幕截图,显示他在Chrome开发者控制台上取消选中了Enable
按钮
我试过了,但没用
要解决此问题,必须转到chrome://extensions
并从那里禁用Batarang
这解决了问题,但有点不令人满意。我担心使用Batarang扩展的最终用户也会看到一个显示了所需插值的页面。InterpolateButton不应该有什么?
在控制台日志中看到任何错误吗?我不认为我曾经遇到过一个插值中断的实例,而没有错误被抛出到某个地方。@PankajParkar无论应该插入什么。我已将其更改为字符串、函数调用、1+1
等。无论其内容如何,它都不会插值。@我问这个问题是因为我认为您在插值表达式方面有问题。。这意味着你没有收到任何控制台错误?@MatthewGreen用控制台错误更新了帖子。
angular.js:13236 TypeError: Cannot read property 'exp' of undefined
at watchFnToHumanReadableString (<anonymous>:703:19)
at Scope.$delegate.__proto__.$watch (<anonymous>:735:28)
at new <anonymous> (http://localhost:9000/assets/lib/angular-ui-bootstrap/ui-bootstrap-tpls.js:6318:19)
at Object.invoke (http://localhost:9000/assets/lib/angularjs/angular.js:4604:19)
at extend.instance (http://localhost:9000/assets/lib/angularjs/angular.js:9855:34)
at nodeLinkFn (http://localhost:9000/assets/lib/angularjs/angular.js:8927:34)
at compositeLinkFn (http://localhost:9000/assets/lib/angularjs/angular.js:8226:13)
at compositeLinkFn (http://localhost:9000/assets/lib/angularjs/angular.js:8229:13)
at nodeLinkFn (http://localhost:9000/assets/lib/angularjs/angular.js:8973:24)
at compositeLinkFn (http://localhost:9000/assets/lib/angularjs/angular.js:8226:13) <div class="col-sm-12 col-md-12 main ng-scope" ui-view="content">