What is the correct way, in angularjs, to format an input field value base on whether or not the input has focus?
I have an input that displays numbers and I want to show values rounded to 2 decimal places, but also want that when the user goes to edit the field the full value will be shown and available to edit.
i.e.
a - I have a model with the value 1200.0166667 stored
b - when the bound input field doesn't have focus I want to display 1200.017
c - but when the input has focus I want to display the full value 1200.0166667
what is the correct way of doing this?