You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I found your component is very useful - thank you!
What I didn't understand is why model's type is changing.
For example: I have $scope.amount = 1234.00 but if I try to change the amount I will have new value of the $scope.amount as a string. I think model's value type should be the same. http://plnkr.co/edit/VaA7gXG6yBeuOC2WaT0W?p=preview
The text was updated successfully, but these errors were encountered:
I had the same issue. I changed the ngModelCtrl.$parsers.unshift method to return parseFloat(noCommasVal), and that seems to work. Would it be possible to make it an option e.g. {returnNumber: true} ?
Hi!
I found your component is very useful - thank you!
What I didn't understand is why model's type is changing.
For example: I have $scope.amount = 1234.00 but if I try to change the amount I will have new value of the $scope.amount as a string. I think model's value type should be the same.
http://plnkr.co/edit/VaA7gXG6yBeuOC2WaT0W?p=preview
The text was updated successfully, but these errors were encountered: