I have an object with arrays of objects inside like this:
Companies =
{
"-KGZPUea1ZtWVXspLRGF" : {
"assignedUsers" : [ {
"email" : "[email protected]"
} ],
"name" : "Talon"
},
"-KGcS8doqRw1Jcemhxuz" : {
"assignedUsers" : [ {
"email" : "[email protected]",
"status" : "active"
} ],
"name" : "Billy"
}
}
I wan't to be able to create an angular filter which filters out only companies where a specific email is assigned and their status is active.
Something like this
<div ng-repeat="company in Companies | filter:{assignedUsers contains '[email protected]' && assignedUsers.status == 'active'}">
Is something like that possible?