In angular, formatters are responsible for translating user-readable text entered in an input widget
to a JavaScript object in the data model that the application
can manipulate.
You can use formatters in a template, and also in JavaScript. Angular provides built-in formatters, and of course you can create your own formatters.