1.3.6 中的 ng-repeat 和复合过滤器

ng-repeat and compound filter in 1.3.6

我才刚刚开始学习 angular。我决定将我的 1.2 示例升级到当前版本。我发现过滤器不再起作用了。它在 1.3.6 中崩溃了。
我不再能够按 2 个集合对象字段进行过滤。

http://plnkr.co/edit/Mpo5UDvzjUWIToTZo142?p=preview

<li class="animate-repeat" ng-repeat="friend in friends | filter:{age:a,name:q }">

如何恢复此行为?最终我希望 ng-repeat 显示包含每个朋友内容的自定义指令。
当我重新格式化我的代码时过滤器会起作用吗?
谢谢

您的代码运行良好。你不应该忘记初始化过滤器谓词中使用的变量,因为它们应该是字符串,according to the documentation:

// In the controller
$scope.a = '';
$scope.q = '';

作为旁注,请为您的变量使用更有意义的名称。