本文介绍了使用angularjs中的ngdialog绑定弹出页面中的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 这里我的代码是 here my code is Quote: var newScope = $ scope 。$ new(); newScope.Products = $ scope.Products; ngDialog.open({ template:'< select id =ddlProductsname =ddlProductsdata-ng-model =ddlProductsrequired =required>< option ng-repeat =Products in Products.ExtraProductsvalue ={{product.ProductId}} > {{product.ProductsName}}< / option>< / select>', className:'ngdialog-theme-default', closeByEscape: true, $范围:newScope, plain:true }); var newScope = $scope.$new(); newScope.Products = $scope.Products; ngDialog.open({ template :' <select id="ddlProducts" name="ddlProducts" data-ng-model="ddlProducts" required="required"> <option ng-repeat="product in Products.ExtraProducts" value="{{product.ProductId}}">{{product.ProductsName}}</option></select>', className: 'ngdialog-theme-default', closeByEscape: true, $scope: newScope, plain: true }); b $ b 我在这做错了吗? 空白下拉列表可见Am I doing something wrong in this ?Blank dropdown is visible推荐答案 这篇关于使用angularjs中的ngdialog绑定弹出页面中的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-20 03:11