{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"params":[]},"next":{"description":"","pages":[]},"title":"formly-custom-validation","type":"basic","slug":"formly-custom-validation","excerpt":"directive","body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"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!\",\n  \"title\": \"Internal Directive\"\n}\n[/block]\nThis is an attribute directive. The given value should be a validators object.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<input ng-model=\\\"model[options.key]\\\"\\n       formly-custom-validation=\\\"options.validators\\\" />\",\n      \"language\": \"html\"\n    }\n  ]\n}\n[/block]","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"558cb2bd0b236c2500d37cee","version":{"version":"6.16.0","version_clean":"6.16.0","codename":"","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["558cb2bc0b236c2500d37cd5","558cb2bc0b236c2500d37cd6","558cb2bc0b236c2500d37cd7","558cb2bc0b236c2500d37cd8","558cb2bc0b236c2500d37cd9","558cb2bc0b236c2500d37cda"],"_id":"558cb2bc0b236c2500d37cd4","project":"5515ba4981faf83900d2b10c","releaseDate":"2015-06-26T02:02:36.211Z","__v":1,"createdAt":"2015-06-26T02:02:36.211Z","forked_from":"558a9c9f8d30cb2300873ecd"},"category":{"sync":{"isSync":false,"url":""},"pages":["558cb2bd0b236c2500d37cec","558cb2bd0b236c2500d37ced","558cb2bd0b236c2500d37cee","558cb2bd0b236c2500d37cef"],"title":"API","slug":"api","order":3,"from_sync":false,"reference":false,"_id":"558cb2bc0b236c2500d37cd6","createdAt":"2015-03-28T04:12:21.318Z","project":"5515ba4981faf83900d2b10c","version":"558cb2bc0b236c2500d37cd4","__v":1},"__v":0,"createdAt":"2015-03-28T05:24:49.003Z","project":"5515ba4981faf83900d2b10c","user":"54e3723b8ef7552300409bf4","githubsync":""}

formly-custom-validation

directive

[block:callout] { "type": "warning", "body": "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!", "title": "Internal Directive" } [/block] This is an attribute directive. The given value should be a validators object. [block:code] { "codes": [ { "code": "<input ng-model=\"model[options.key]\"\n formly-custom-validation=\"options.validators\" />", "language": "html" } ] } [/block]