【发布时间】:2013-07-18 15:16:49
【问题描述】:
我有一个ng-repeat 定义如下:
{"ng-repeat" => "city in cities() | filter: search"}
一个城市是{ attributes: {name: 'Boston'} }
还有这样的表格:
%input{:type => "search", "ng-model" => "search.attributes.name"}
但它不起作用,我如何根据city.attributes.name 进行过滤?
【问题讨论】:
标签: javascript jquery search loops angularjs