{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"params":[],"settings":""},"next":{"description":"","pages":[]},"title":"formly-field","type":"basic","slug":"formly-field","excerpt":"directive","body":"[block:callout]\n{\n \"type\": \"danger\",\n \"title\": \"Misses features outside of formly-form\",\n \"body\": \"Most things you specify as options to configure a field are used by this directive, however, some properties about the field (like `watchers` for example) will simply be ignored. Most of the time you should use the `formly-form` directive instead.\"\n}\n[/block]\n\n[block:api-header]\n{\n \"type\": \"basic\",\n \"title\": \"Attributes\"\n}\n[/block]\n\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Attribute Name\",\n \"h-1\": \"Scope Type\",\n \"h-2\": \"Description\",\n \"0-0\": \"options\",\n \"1-0\": \"model\",\n \"3-0\": \"formId\",\n \"4-0\": \"index\",\n \"5-0\": \"fields\",\n \"6-0\": \"formState\",\n \"2-0\": \"form\",\n \"0-1\": \"`=` binding (required)\",\n \"1-1\": \"`=` binding (required)\",\n \"2-1\": \"`=` binding (optional)\",\n \"3-1\": \"`=` binding (optional)\",\n \"4-1\": \"`=` binding (optional)\",\n \"5-1\": \"`=` binding (optional)\",\n \"6-1\": \"`=` binding (optional)\",\n \"0-2\": \"The field config. Must have a `type` OR `template` OR `templateUrl`. Everything else is optional, but it is limited to specific properties. Any extra options will result in an error (because angular-formly loves you).\",\n \"1-2\": \"The model for the field to represent. Most fields will use `ng-model=\\\"model[options.key]\\\"`\",\n \"2-2\": \"The `NgFormController` that will be used to get and set the `formControl` for the field.\",\n \"3-2\": \"The id of the form, used to generate the id for the field which is used in the `name` (for the `formControl`) and the `id` of the field (useful for a `label`'s `for` attribute)\",\n \"5-2\": \"The other fields. As convenience if needed.\",\n \"4-2\": \"The index of the field, used if `key` is not defined on the field.\",\n \"6-2\": \"The `formly-form.options.formState` property. This is how fields can communicate with one another without polluting the model.\"\n },\n \"cols\": 3,\n \"rows\": 7\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":34,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56d91c5707ae190b00004478","createdAt":"2015-03-28T05:18:39.517Z","__v":1,"category":{"sync":{"isSync":false,"url":""},"pages":["56d91c5707ae190b00004477","56d91c5707ae190b00004478"],"title":"Internal API","slug":"internal-api","order":4,"from_sync":false,"reference":false,"_id":"56d91c5507ae190b00004468","createdAt":"2015-03-28T05:10:32.768Z","project":"5515ba4981faf83900d2b10c","version":"56d91c5507ae190b00004460","__v":1},"user":"54e3723b8ef7552300409bf4","project":"5515ba4981faf83900d2b10c","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"},"githubsync":""}
formly-field
directive