I'm currently working on implementing a filter for multiple columns in a table that is being populated by the ng-repeat
directive.
<tr ng-repeat="descriptiveField in vm.descriptiveFieldList|filter:{name:vm.searchText}" ng-class-even="'even-bgcolor'">
<td ng-bind=descriptiveField.name></td>
<td ng-bind="descriptiveField.fieldDescription></td>
<td style="text-align: left" ng-bind=descriptiveField.source></td>
</tr>
There is a search box available:
<input type="text" ng-model="vm.searchText" class="search-input"/>
Currently, the filter only applies to the 'Name' column. I would like to be able to search on two columns, 'name' and 'source'. How can I achieve this?