Expanding on this. Would it be possible to add dynamic filtering to an ng-repeat?
For example I'm thinking of having a dynamic form which the user can add/remove form elements like this. Of course this would mean that the filter part of the ng-repeat would need to add/remove filter elements dynamically.
<select>
<option>Age</option>
<option>CustomerID</option>
<option>ProductID</option>
<select>
<input type="text" name="select-option-value">
<input type="submit" value="add filter">
<input type="submit" value="remove filter">
in my ng-repeat:
<div ng-repeat="person in persons | filter: search">{{person.name}}</div>
If the user clicks "add filter" then I'm going to have an ng-repeat something like this:
<div ng-repeat="person in persons | filter: search | filter: search2">{{person.name}}</div>
I'm not sure if its even possible to append filter elements to ng-repeat when the user adds/removes filter form elements.
Any ideas?