Il jump right to the case.
Basicly when you have an array of objects like this:
{id: 1, name: "Hello", location: "New york", streetNumber: 50}
Then you have an input field:
<input type="text" ng-model="search.$" />
And the following table:
<table>
<thead>
<th>Name</th>
<th>Location</th>
<th>Street number</th>
</thead>
<tr ng-repeat="item in items | filter:search">
<td>
{{item.name}}
</td>
<td>
{{item.location}}
</td>
<td>
{{item.streetNumber}}
</td>
</tr>
</table>
So when you type into the search field: "1".
Then you will also get the object where the id
matches 1.
My question is how can i exclude items that are not shown?