I am using a nice snippet of code from jsfiddle working as expected, however, when I want to add a href to link each result to another page of my app, I struggle with finding a proper syntax. Thanks for your help.
Here is what I have so far in my html:
<div data-ng-controller="searchController">
<input type="text" ng-model="search" placeholder="Type here" class="search_all_inputfield">
<table>
<tbody>
<tr ng-repeat="item in items | filter:searchText " href="#">
<td >{{item.id}}</td>
<td>{{item.name}}</td>
</tr>
</tbody>
</table>
</div>
EDIT: WORKING SOLUTION - amended HTML replacing table presentation with DIV :
<div data-ng-controller="searchController">
<input type="text" ng-model="search" placeholder="Type here" class="search_all_inputfield">
<div ng-repeat="dish in dishList" href="#">
<a href="#path/to/url"><div>
<span>{{item.id}}</span>
<span> / </span>
<span>{{item.name}}</span>
</div></a>
</div>
</div>
if you add a link to your data
$scope.items = [
{id:1, name:'John', link:'home'},
{id:2, name:'Steve', link:'about'},
{id:3, name:'Joey', link:'contact'},
{id:4, name:'Mary', link:'links'},
{id:5, name:'Marylin', link:'blog'}];
then you can create a link using ng-href
<td><a ng-href='{{item.link}}'>{{item.name}}</a></td>