我有一个对象数组:
[{
"name": "Shop #1",
"cost": "100",
"currency": "RUB"
}, {
"name": "Shop #2",
"cost": "99",
"currency": "EUR"
}, {
"name": "Shop #3",
"cost": "2",
"currency": "USD"
}]
想要获得过滤结果(仅显示“费用”和“货币”属性):
[{
"cost": "100",
"currency": "RUB"
}, {
"cost": "99",
"currency": "EUR"
}, {
"cost": "2",
"currency": "USD"
}]
使用标准的AngularJS filter组件可以吗?
为方便起见,这是一个示例小提琴:https://jsfiddle.net/serikov/qa706tu3/
P.S。我通过how to do that知道custom filter,但需要使用标准过滤器组件解决方案。