Hi there! I'm working on a small project where I need to implement a search functionality using multiple dynamically generated text fields.
Here is how I am adding the search fields:
<div class="form-group" ng-repeat="choice in choices">
<button ng-show="showAddChoice(choice)" ng-click="addNewChoice()">Add another choice</button>
<input type="text" ng-model="choice.name" name="" placeholder="Search criteria">
</div>
Later on, I have a table with an ng-repeat directive and this is the relevant snippet:
<tr ng-repeat="todo in todos | filter: {filter from all fields}">
.......
</tr>
The goal here is to filter the contents of the table using all the dynamically added search fields.