angularjs - Angular Filter a nested ng-repeat -
in 1 of table columns have ng-repeat trying filter input inside separate ng-repeat
<span ng-repeat="title in book.attrs"> <input type="checkbox", ng-model="data[$index]"></input> <input ng-model="blah.value", ng-show="data[$index]", type="text"></input> </span> <input ng-model="search.first_name" type="text"></input> <input ng-model="search.last_name" type="text"></input> <tr ng-repeat="stuff in lotsofstuff | filter:search"> <td>{{ stuff.first_name }}</td> <td>{{ stuff.last_name }}</td> <td ng-repeat="title in book.attrs" ng-show="data[$index]"> <span ng-if="attribute.attribute_title == title.title" ng-repeat="attribute in stuff.attribute_values | filter:blah"> <span>{{ attribute.value }}</span> </span> </td> </tr> when type input expect rows filter according blah.value, nothing happens.
i'm curious if reason it's not filtering because it's nested ng-repeat or because blah filter somehow conflicting search filter above in table row.
Comments
Post a Comment