diff --git a/Q&A.md b/Q&A.md index a7e2e6d..98803b2 100644 --- a/Q&A.md +++ b/Q&A.md @@ -1,6 +1,6 @@ Q & A ===== -###Can I validate multiple Checkbox? +### Can I validate multiple Checkbox? Yes, you can do it by using `validation-group` @@ -22,7 +22,7 @@ Yes, you can do it by using `validation-group` ``` -###Can I validate the form when init ? [#10](https://github.com/huei90/angular-validation/issues/10)### +### Can I validate the form when init ? [#10](https://github.com/huei90/angular-validation/issues/10)### ```html
``` -###Can I validate $modelValue instead of a $viewValue? [#272](https://github.com/huei90/angular-validation/pull/272)### +### Can I validate $modelValue instead of a $viewValue? [#272](https://github.com/huei90/angular-validation/pull/272)### Yes, adding `use-view-value="false"` attribute forces to use $modelValue instead of a $viewValue for evaluation when form is submitted. By default $viewValue is used. 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 e.g. by using a custom directive with properly specified $formatters and $parsers.