{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]}},"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]","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"558cb2bd0b236c2500d37ce4","githubsync":"","category":{"sync":{"isSync":false,"url":""},"pages":["558cb2bd0b236c2500d37ce4","558cb2bd0b236c2500d37ce5"],"title":"Internal API","slug":"internal-api","order":4,"from_sync":false,"reference":false,"_id":"558cb2bc0b236c2500d37cda","project":"5515ba4981faf83900d2b10c","version":"558cb2bc0b236c2500d37cd4","__v":1,"createdAt":"2015-03-28T05:10:32.768Z"},"user":"54e3723b8ef7552300409bf4","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"},"__v":0,"project":"5515ba4981faf83900d2b10c","createdAt":"2015-03-28T05:18:39.517Z"}
formly-field
directive