I have an array of items which contains an array of other items. The user can filter these items filling a form in the interface. It's working, but now I have a filter that need to execute just for the first item of an array that is inside of these items. What "I want" to do is this:
<tr ng-repeat="item in items | filter: itemSearch | filter: {
my_object: {
propertyA: items_filter.propertyA,
propertyB: items_filter.propertyB,
propertyC[0].status: items_filter.status //here
}
}"></tr>
I'm getting the error:
vendor.min.js:16631 Error: [$parse:syntax] Syntax Error: Token '[' is unexpected, expecting [}] at column 401 of the expression [items | filter: itemsSearch | filter: {
How can I filter a property of the array's first item?