Hi everyone ,
I have a small problem, I was wondering if Angular proposed an easy
solution or if i have to do it by hand ; so here's my problem !
let's take a simple example i have an array as follow :
[{"id":"1","Name":"Paul","Email":"[email protected]"},
{"id":"2","Name":"Jean","Email":"[email protected]"},
{"id":"3","Name":"Jack","Email":"[email protected]"}]
I then do a straight-forward search bar that filter this three users
<input style="font-size:1.1em" placeholder="Search" id="searchUser"
type="text" ng-model="searchUser">
<div ng-repeat="user in SAM.userbase | filter: searchUser" >
{{user.Name}} : ///////PROBLEM/////////////
</div>
Here I'd like to show the name of the user (that works) , but also where
the filter has done its work.
For exemple :
So if someone type "Boo" it will show : [Paul : [email protected]]
"1" it will show : [Paul : 1]
And so on ...
Is there a simple way to do that with angular ? Or should I "hardcode" a
search filter that give me that info ?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.