Closed zvaraondrej closed 7 years ago
yes, this is a real need case. can you remove those unwanted indent/format commit?
Okay, now I see where was the unwanted indentation. It came by mistake, sorry. It should be fixed now.
There are still some conflicts over the file, do you mind pull the latest from master, and run the grunt build again?
Seems like it should be fine now. What do you think? :)
yep, done! 🍻
There is one more thing we can improve, try to add the explanation in Q&A section.
with the explanation you given above
Allows user to specify, weather to use $viewValue or $modelValue for evaluation when form is submitted. By default uses $viewValue; by adding use-view-value="false" forces to use $modelValue; This need raises from a need of localized number inputs, which have to be stored in a $viewValue as a string (e.g. "2 000,0"), however in a $modelValue they are stored as a properly formatted number (2000). This can be done by using a custom directive with properly specified $formatters and $parsers.
It seems like I had to create a new PR for this one, so there's another opened...
Allows user to specify, weather to use $viewValue or $modelValue for evaluation when form is submitted.
By default uses $viewValue; by adding use-view-value="false" forces to use $modelValue;
This need raises from a need of localized number inputs, which have to be stored in a $viewValue as a string (e.g. "2 000,0"), however in a $modelValue they are stored as a properly formatted number (2000). This can be done by using a custom directive with properly specified $formatters and $parsers.