I'm trying to use a nested ng-repeat
and within the second one I need to filter according a ng-model
that I set before. But within the second ng-repeat
I need to place a ng-if
that depends on the field name.
The thing is that I've tried to use the (key, value) form (which works perfectly) but then it's very annoying to apply a filter. So I was wondering if there is a way to access to the name field.
For example:
<tbody>
<tr ng-repeat="item2 in items2">
<td ng-repeat="val in item2 | filer:blabla" ng-if="val.field != 'foto'">{{val}}</td>
</tr>
</tbody>