I have two directives in my project. They allow for the formatting of numeric values, with user-defined min and max, and the ability to format with symbols, one for floating-point numbers, one for integers. I have created a mock model of the directive (I have not added jGrowl for instance, and the restrictions don't apply to the fields, only to the ng-model), but only one of the values is being stored at a time. From a formatting and visual aspect, the functionality in my project is perfect. But I need all the values in the model to retain their values.
{ "varA": "1173", "varB": "153", "varC": "153", "varD": "000000153" }
not { "varC": "153.00" } or { "varA": "1173.00" } etc...
I think that the problem lies in return values vs. $setViewValue(); and $render(); but I have added more return statements and the problem persists.