filter (filter)

Improve this Doc View Source filter

  1. filter in module ng

Selects a subset of items from array and returns it as a new array.

Usage

In HTML Template Binding

{{ filter_expression | filter : expression : comparator}}

In JavaScript

$filter('filter')(array, expr