Filters are used for formatting data displayed to the user.
The general syntax in templates is as follows:
{{ expression [| filter_name[:parameter_value] ... ] }}
$filter(name);
Param | Type | Details |
---|---|---|
name | String | Name of the filter function to retrieve |
Function |
the filter function |
© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.4.14/docs/api/ng/service/$filter