Imagine having an array object defined as follows:
[{
name: 'a',
number: 1
},
{
name: 'b',
number: 2
},
{
name: 'c',
number: 3
}]
If you specifically want to retrieve the 'name' attribute with a value of 'b', which corresponds to array[1], how should you apply the filter?
<li ng-repeat="foo in foos | filter:what_to_do_here='b'"></li>