{"_id":"56d91c5807ae190b00004485","version":{"_id":"56d91c5507ae190b00004460","__v":1,"project":"5515ba4981faf83900d2b10c","createdAt":"2016-03-04T05:25:41.052Z","releaseDate":"2016-03-04T05:25:41.052Z","categories":["56d91c5507ae190b00004464","56d91c5507ae190b00004465","56d91c5507ae190b00004466","56d91c5507ae190b00004467","56d91c5507ae190b00004468"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"8.0.0","version":"8.0.0"},"user":"54e3723b8ef7552300409bf4","__v":0,"category":{"_id":"56d91c5507ae190b00004467","version":"56d91c5507ae190b00004460","pages":["56d91c5807ae190b00004483","56d91c5807ae190b00004484","56d91c5807ae190b00004485","56d91c5807ae190b00004486"],"project":"5515ba4981faf83900d2b10c","__v":1,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-03-28T04:12:21.318Z","from_sync":false,"order":3,"slug":"api","title":"API"},"project":"5515ba4981faf83900d2b10c","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-03-28T05:24:49.003Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":31,"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]","excerpt":"directive","slug":"formly-custom-validation","type":"basic","title":"formly-custom-validation"}

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]