简体   繁体   English

IE9中未显示AngularJS Dropdown

[英]AngularJS Dropdown not showing in IE9

Following code below I tried to make it work in Chrome and it works but when I try in IE9, I am not able to get the results in the dropdown. 下面的代码尝试使它在Chrome中运行,并且可以运行,但是当我在IE9中运行时,无法在下拉列表中获得结果。 Changed my AngularJS version to AngularJS v1.2.16 and angular.min.js : AngularJS v1.2.16 Still could not see any results. 将我的AngularJS版本更改为AngularJS v1.2.16和angular.min.js:AngularJS v1.2.16仍然看不到任何结果。

 <div id="ng-app" ng-app="displayProductList">

                          <br><br>
                              <div ng-controller="ProductsListController">
                              <br>
                              <br>
                                  <div ng-show="products.length">
                                      <div>
                                          <select ng-model="product" ng-options="prod.name for prod in products" />
                                      </div>
                                  </div>
                              </div>

                       </div>

I would try adding a es5-shim.js to your project. 我会尝试将es5-shim.js添加到您的项目中。

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM