filter (filter in module ng )

Description

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

Note: This function is used to augment the Array type in Angular expressions. See ng.$filter for more information about Angular arrays.

Usage

In HTML Template Binding

{{ filter_expression | filter:expression }}

In JavaScript

$filter('filter')(array, expression)

Parameters

Example

Source





Demo