I\'ve got an json full of datas with lowcase and upcase. For example :
[
{ \"firstName\":\"JoHn\" , \"lastName\":\"DoE\" },
{ \"firstName\":\"aNnA\" ,
Pass a function name to filter
which you define on an applicable scope, where you use string's toLowerCase. See ngFilter. The function signature is a simple function (item) { ... }
.
Example JS in your controller:
$scope.filterOnlyFoo = function (item) {
return item == "foo";
}
Example HTML:
Sample Plunker