AngularJS Filters

In AngularJS, filters are used to format data. Following is a list of filters used for transforming data.

Filter Description
Currency It formats a number to a currency format.
Date It formats a date to a specified format.
Filter It select a subset of items from an array.
Json It formats an object to a Json string.
Limit It is used to limit an array/string, into a specified number of elements/characters.
Lowercase It formats a string to lower case.
Number It formats a number to a string.
Orderby It orders an array by an expression.
Uppercase It formats a string to upper case.

# How to add filters to expressions

You can add filters to expressions by using the pipe character |, followed by a filter.

In this example, the uppercase filter format strings to upper case:

See this example: