Hello everyone,
I am facing a minor issue that I seem unable to resolve. I have a search input field that allows users to search through a table in all columns. However, I am struggling to track the items in ngRepeat effectively.
Below is the search input field:
<div>
<input type="search" ng-model="searchText" />
</div>
And here is the table using ngRepeat:
...
<tr ng-repeat="item in filtered = (persons | filter:searchText track by item.name)">
<td>{{ item.id }}</td>
<td>{{ item.name }}</td>
</tr>
...
If anyone has a solution to my problem, I would greatly appreciate it! :)