角度 UISelect 问题



我遇到了Angular UISelect的问题,并使用uiselect选项将数据绑定到它并重复。

<ui-select class="form-control" ng-model="contractsHeader.AgencyName"   theme="select2" ng-disabled="disabled" style="min-width: 300px;">
                                <ui-select-match placeholder="Select an agency">{{$select.selected.Name}}</ui-select-match>
                                <ui-select-choices repeat="agency in agencies ">
                                    <div ng-bind-html="agency.Name"></div>
                                </ui-select-choices>
                            </ui-select>

我在 chrome 控制台中看到以下问题

类型错误:未定义不是函数 在链接 (http://cdnjs.cloudflare.com/ajax/libs/angular-ui-select/0.8.3/select.js:924:11) at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6579:13) at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:5986:15) at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6573:24) at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:5986:15) at publicLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:5891:30) at boundTranscludeFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6005:21) at controllersBoundTransclude (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6600:18) at ngRepeatAction (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:20084:15) at Object.$watchCollectionAction [as fn] (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12128:13)

IE 控制台我看到每个记录 im 绑定都有这个

类型错误:对象预期 在链接 (http://cdnjs.cloudflare.com/ajax/libs/angular-ui-select/0.8.3/select.js:924:11) at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6579:13) at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:5986:15) at nodeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6573:24) at compositeLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:5986:15) at publicLinkFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:5891:30) at boundTranscludeFn (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6005:9) at controllersBoundTransclude (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:6600:11) at ngRepeatAction (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:20084:15) 在$watchCollectionAction (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12128:13)当我

下拉它时,我看不到任何下拉值,但我看到行是绑定的,因为当我选择一个值时,它显示为已选择。

奇怪的是,当我在我的示例应用程序中使用相同的代码段时,它就像一个魅力

已解决:在我的项目中,我在升级到 angular 1.2.18 版本后使用了 Angular 1.2.16 版本问题已修复。

相关内容

  • 没有找到相关文章

最新更新