I have a JSON array like:
var data = [
{
"name": "Jim",
"age" : 25
},
{
"name": "Jerry",
"age": 27
}
];
in HTML:
<ul>
<li ng-repeat="val in data | filter:{age: age}:true">{{val.name}}</li>
</ul>
The above code works fine, since I want to exit, but I don't want to use ng-repeatwhere it creates a loop, and then filters.
is there any other way where i can directly select DATA from array, where age = age??
source
share