myForm.myInput.$error.validator
Closed this issue · 0 comments
wolsk1 commented
From http://angular-ui.github.io/ui-utils/
ui-validate=" 'validateFoo($value)' "
Input is valid: {{!!myForm.myInput.$error.validator}}
{{!!myForm.myInput.$error.validator}} - always false, because it doesn't exist. When I tried
{{myForm.myInput.$error}}, then object was empty even there is error. Only this works if ui-validate="{valid: 'validateFoo($value)' }" is used where value is named.
Sorry got wrong