Filters is used to format the value of given expression for display to user. Some filter are built in filters and we can also define our filters. Filters are added to expression by using | symbol followed by a filter.
AngularJS provides the following built in filters:
currency: This filter is used to format a number as currency format.
date: This filter is used to format the date as given format.
uppercase: This filter is used to convert string into upper case.
lowercase: This filter is used to convert string into lower case.
number: This filter is used to format a number to a string
orderBy: This filter is used to order an array to given expression.
json: Convert object to JSON string.
limitTo: limit an array or string to given number.
filter: This filter is used to select some items from array. It is used only with arrays, and return array containing match items.
Filters are executed when inputs are changed. We can use filters in controllers, services and directives.