I have a few 100 records obtained from database (exam results of students) and I filter the results based on few criteria like subject.
<tr ng-repeat="t in search.samplesfilter = ( search.samples | filter:search.searchText | uniqueFilter:'subject' | orderBy:search.sorter:search.reverse) ">
I want to add another filter to show only students who passed.
I am not able to append the criteria using button click.
How I can add the extra criteria to default filter using button click?
Kindly help. Thanks in advance!
ng-repeat
or something of the sort. The simplest way to filter by pass/fail, would be to simply remove these items from the array. Optionally, you could copy your old array into a new one, in case the user does not want to filter anymore. In any event, it is hard to give you any assistance, if you don't share any code with us.