I have a text box in my html and I would like to filter the results on my page with logical AND from the terms that I entered in the box. Let me demonstrate
Suppose my page has
- Example number 1
- Example number 2
- Example number 3
Usually, if I want to filter the results, I will do something like
<input type= "text" ng-model= "query">
And later
<tr ng-repeat= "thing in blah | filter : query">
<td> {{thing}} </td>
</tr>
So, if I typed
"Example"
I would understandably not "filter" anything. However, how would I make a logical AND, with a few search terms? For example, if I type
"Example 1"
, "", "1". angular, , , , , , - .