angular-cn/modules/core/docs/03_formatters.md

381 B

Formatters

Formatters can be appended on the end of the expressions to translated the value to a different format. Typically used to controll the stringification of numbers, dates, and other data, but can also be used for ordering, maping, and reducing arrays. Formatters can be chained.

NOTE: Formatters are known as filters in Angular v1.

Formatters syntax is: