1. Create a filter
app.filter('MonetaryUnit', function () { return function (amount) { return (amount / 100).toFixed(2); } }); |
2. Apply filter to field
{{someField | MonetaryUnit}} |
For example, if someField has a value of “2000” it will render as “20.00”.