Is there a way to filter this JSON data by an element (in this case the id) without relying on the index?
ABC: [{
ID: home,
elementsHome: [
{
el1: x,
el2: y},
{
el3: d,
el4: s}]
},
{
ID: payments,
elementsPaymets: etc...
}];
An HTML structure with an ng-repeat like the one below doesn't seem to work: ng-repeat: item in ABC.element2 | filter: {id:"good"}. The only workaround I have found is rewriting ABC as ABC[0], but I am looking for a solution that avoids this. Any help would be greatly appreciated.
Thank you!