【发布时间】:2014-07-25 14:02:17
【问题描述】:
我在我的应用程序中使用 angularjs (v1.2.20)。
我正在使用以下代码 sn-p 将下拉列表中的值与比较器条件绑定。但是下拉值越来越空白,
<select id="countries" class="form-control" ng-model="countries.country" ng-options="country as country.name for country in countries | filter: { "NewYork": countries.cities.name }" required/>
这里,“过滤器:{ "NewYork": countries.cities.name }" 条件不起作用。
但它在较低版本的 AngularJS 1.2.7 中工作。
谁能帮助我最新版本的AngularJS(v1.2.20)有这个问题吗? 或者 如果我需要更改代码中的任何内容,请告诉我。
谢谢,
佩里亚萨米
【问题讨论】:
标签: angularjs filter ng-options