I am following this: http://docs.angularjs.org/api/ng.filter:currency When I type 1234.56 in the field then the output should be $1,234.56. But if I type in the input 1234 then
I prefer this answer as it keeps the commas to separate thousands:
Removing AngularJS currency filter decimal/cents