{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"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]\n\n[block:html]\n{\n  \"html\": \"<hr />\\n<a href=\\\"https://app.codesponsor.io/link/PKGFLnhDiFvsUA5P4kAXfiPs/formly-js/angular-formly\\\" rel=\\\"nofollow\\\"><img src=\\\"https://app.codesponsor.io/embed/PKGFLnhDiFvsUA5P4kAXfiPs/formly-js/angular-formly.svg\\\" style=\\\"width: 888px; height: 68px;\\\" alt=\\\"Sponsor\\\" /></a>\\n\"\n}\n[/block]","updates":[],"order":31,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56d91c5807ae190b00004485","version":{"version":"8.0.0","version_clean":"8.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["56d91c5507ae190b00004464","56d91c5507ae190b00004465","56d91c5507ae190b00004466","56d91c5507ae190b00004467","56d91c5507ae190b00004468"],"_id":"56d91c5507ae190b00004460","releaseDate":"2016-03-04T05:25:41.052Z","__v":1,"createdAt":"2016-03-04T05:25:41.052Z","project":"5515ba4981faf83900d2b10c"},"createdAt":"2015-03-28T05:24:49.003Z","user":"54e3723b8ef7552300409bf4","githubsync":"","__v":1,"category":{"sync":{"isSync":false,"url":""},"pages":["56d91c5807ae190b00004483","56d91c5807ae190b00004484","56d91c5807ae190b00004485","56d91c5807ae190b00004486"],"title":"API","slug":"api","order":3,"from_sync":false,"reference":false,"_id":"56d91c5507ae190b00004467","version":"56d91c5507ae190b00004460","createdAt":"2015-03-28T04:12:21.318Z","project":"5515ba4981faf83900d2b10c","__v":1},"project":"5515ba4981faf83900d2b10c"}

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] [block:html] { "html": "<hr />\n<a href=\"https://app.codesponsor.io/link/PKGFLnhDiFvsUA5P4kAXfiPs/formly-js/angular-formly\" rel=\"nofollow\"><img src=\"https://app.codesponsor.io/embed/PKGFLnhDiFvsUA5P4kAXfiPs/formly-js/angular-formly.svg\" style=\"width: 888px; height: 68px;\" alt=\"Sponsor\" /></a>\n" } [/block]