diff --git a/index.html b/index.html index b465571..1490da4 100644 --- a/index.html +++ b/index.html @@ -53,6 +53,7 @@
The ui-validate directive makes it very easy to use any function as a validation function for input elements (using ngModel).
Just add the 'ui-validate' directive to your input field.
+2 types of syntax are supported: +
ui-validate="myValidatorFunction"ui-validate="{foo : validateFoo, bar : validateBar}"
+<input ng-model="email" ui-validate='{blacklist : notBlackListed}'>
+<span ng-show='form.email.$error.blacklist'>This e-mail is black-listed!</span>
+
+ Angular.js comes with several built-in validation mechanism for input fields (ngRequired, ngPattern etc.) but using an arbitrary validation function requires creation of a custom formatters and / or parsers. The ui-validate directive makes it easy to use any function(s) defined in scope as a validator function(s).
+