0
我有一个ng-repeat
定义为这样:AngularJS:过滤不工作
{"ng-repeat" => "city in cities() | filter: search"}
城市是{ attributes: {name: 'Boston'} }
而且像这样一种形式:
%input{:type => "search", "ng-model" => "search.attributes.name"}
但它不工作,如何我可以根据city.attributes.name
进行过滤吗?
它不工作,你确定吗?谢谢。 – Alex