$filter
(service in module ng
)
Filters are used for formatting data displayed to the user.
The general syntax in templates is as follows:
{{ expression | [ filter_name ] }}
$filter(name);
name – {String} –
Name of the filter function to retrieve
{Function}
– the filter function