filter
ng
Selects a subset of items from array and returns it as a new array.
{{ filter_expression | filter:expression:comparator }}
$filter('filter')(array, expression, comparator)
| Param | Type | Details |
|---|---|---|
| array | Array | The source array. |
| expression | stringObjectfunction() | The predicate to be used for selecting items from
Can be one of:
|
| comparator | function(actual, expected)trueundefined | Comparator which is used in determining if the expected value (from the filter expression) and actual value (from the object in the array) should be considered a match. Can be one of:
|