Using an ng-repeat directive with a filter, the code looks like this:
ng-repeat="item in items | orderBy:'order_prop' | filter:query | limitTo:4"
The rendered results are visible; now the goal is to perform some logic on that result in the controller. How can the reference to the result items be obtained?
Update:
In order to create an auto-complete feature, there is an input field:
<input id="queryInput" ng-model="query" type="text" size="30" placeholder="Enter query">
Followed by the filtered results:
<ul>
<li ng-repeat="item in items | orderBy:'order_prop' | filter:query | limitTo:4">{{item.name}}</li>
</ul>
The aim now is to navigate through the results and select one of the items.