【发布时间】:2016-11-08 15:31:54
【问题描述】:
我从 JSON 调用的数据非常简单。
我想过滤事件 id 为 13 的所有数据
我的 json 来自 [...] $scope.things = things
[
{
"id":"1",
"title":"title1",
"events":[
{"id":"11",
"events11"},
{"id":"12",
"events12"}
]
},{
"id":"2",
"title":"title2",
"events":[
{"id":"11",
"events11"},
{"id":"13",
"events13"}
]
}
]
我尝试显示:
<ion-item collection-repeat="thing in things | filter:{events.id:'13'}">
{{thing.id}}
</ion-item>
【问题讨论】:
标签: javascript angularjs ionic-framework angularjs-ng-repeat angularjs-filter