Guides
GuidesExamplesGitterLog In
Guides

formly-custom-validation

directive

🚧

Internal Directive

Even though you have access to use this directive, general use of angular-formly suggests that you shouldn't have to use it. This directive is automatically added by the ngModelAttrsTemplateManipulator. Note, because this is an internal directive, it's API is subject to change without a major version change. You've been warned!

This is an attribute directive. The given value should be a validators object.

<input ng-model="model[options.key]"
       formly-custom-validation="options.validators" />