I have a search input field that looks like this:
<input type="search" placeholder="Søg i liste" ng-cloak ng-model="search.Name" />
In a div i have an ng-repeat that looks like this:
<div ng-repeat="item in listItemsFiltered = (listItems | filter:search) | orderBy:'Name' | startFrom: currentPage*pageSize | limitTo: pageSize">
Each item has a Name and a Number. At the moment the search filter only applies to Name because in the ng-model i have written search.Name.
What i want is also to apply the search filter to the variable Number.
I am completely new to angularjs and find it a bit confusing so i have no idea how to do this :)
I have tried something like below:
<input type="search" placeholder="Søg i liste" ng-cloak ng-model="search.Name | search.Number" />
<input type="search" placeholder="Søg i liste" ng-cloak ng-model="search.Name, search.Number" />
But none of the above works.
Can someone tell me how i can achieve this?
Thx :)