I have the following JSON data structure
{ "firstName" : "John",
"role" : "Manager",
"status" : {
"Id" : 30,
"Status" : "Appointment booked",
"statusDate" : 1467826508775
},
"surname" : "Smith",
"title" : "Mr",
}
我正在尝试使用ng-repeat和过滤器来筛选第二层节点的状态status.Status。我尝试了以下代码,但是过滤器没有起作用。
ng-repeat="data in data | filter: {status.Status: 'Appointment booked'}"
上述内容是否可以在ng-repeat上实现,或者我需要考虑其他解决方案?
filter: {status: {Status: 'Appointment booked'}}
。 - Italo Ayres