0
I have a form where some fields are numeric (decimal format with 2 houses). I’m displaying formatted and masked, all correct.
What happens is that when I edit one of the values, this edited value is passed to C# Viewmodel correctly. The other values (which exist but have not been edited) are passed to Viewmodel as 0 (zero).
I tried to remove the mask, change directives... but nothing helped.
My field is like this:
<input ng-model="meuModelo.CubagemM3" type="text" maxlength="15" format="number" centsLimit="3">
There is another remark: when the value comes to the screen penniless (integer value) and is not changed, when recording, it is passed normally to the Viewmodel.
In Viewmodel, the Property is public and with the Decimal type.