I want to use an angular filter but instead of showing the matches I want to hide the matches. How can this be done?
Asked
Active
Viewed 51 times
-1
-
What are you ended up with? Would you post the code of the filter that shows the matches? – Pavlo Aug 21 '14 at 15:12
1 Answers
0
You can "negate" the filter:
<p ng-repeat="item in items | filter: search && '!'+ search">{{item.description}}</p>
Here is a working plunkr with a demo: http://plnkr.co/edit/V3T5RGTRibMyfWZNOtYN?p=preview

Fedaykin
- 4,482
- 3
- 22
- 32