diff options
Diffstat (limited to 'docs/content/guide/forms.ngdoc')
| -rw-r--r-- | docs/content/guide/forms.ngdoc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/content/guide/forms.ngdoc b/docs/content/guide/forms.ngdoc index f3f95b7c..ca44e553 100644 --- a/docs/content/guide/forms.ngdoc +++ b/docs/content/guide/forms.ngdoc @@ -115,9 +115,14 @@ This ensures that the user is not distracted with an error until after interacti A form is an instance of {@link api/ng.directive:form.FormController FormController}. The form instance can optionally be published into the scope using the `name` attribute. -Similarly, control is an instance of {@link api/ng.directive:ngModel.NgModelController NgModelController}. -The control instance can similarly be published into the form instance using the `name` attribute. -This implies that the internal state of both the form and the control is available for binding in the view using the standard binding primitives. + +Similarly, an input control that has the {@link api.ng.directive:ng-model} directive holds an +instance of {@link api/ng.directive:ngModel.NgModelController NgModelController}. +Such a control instance can be published as a property of the form instance using the `name` attribute +on the input control. The name attribute specifies the name of the property on the form instance. + +This implies that the internal state of both the form and the control is available for binding in +the view using the standard binding primitives. This allows us to extend the above example with these features: |
