There are situations when you require to display formated output of your data. AngulerJS helps you to do this by providing built in filters like currency, limitto etc. A filter in AngularJS, allows you to transform or format the data in a specified criteria. It transform your data without changing original data.
Here is a list of AngularJS built in filters with description.
Filters | Description |
---|---|
Currency | It is used to formate number as currency. |
Date | It is used to set date format. |
Filter | It is used to filter or search an item from array. |
Json | It is used to javascript object to Json object. |
LimitTo | It is used to extract subset of array with specified number of items. |
Lowercase | It is used convert any string to lower case. |
Number | It is used to format any number as string. |
OrderBy | It is used to set array order ascending or descending. |
Uppercase | It is used convert any string to upper case. |
In order to understand each filter, click on any filter listed in the above table.