Input Directives

Code on Github Download (0.0.4)

What?

Currency.

- Model: {{currency.amount}}

Why?

How?

<input type="text" id-currency ng-init="currency.amount=1234.56" ng-model="currency.amount" />

What?

Percent.

Parser will divide by 100 for model

Formatter will multiply by 100 for display to view

- Model: {{percent.val}}

Why?

How?

<input type="text" id-percent ng-init="percent.val=.1234" ng-model="percent.val" />