diff options
| author | Wesley Cho | 2013-11-29 09:28:03 -0500 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2013-12-09 20:14:45 +0000 | 
| commit | c3d6ca97e1618fa7b770d60fdc37b12ff51c65ab (patch) | |
| tree | d8abd46804434315fc41363561376273356d11be /docs/content/guide/forms.ngdoc | |
| parent | a14266e46466d02871bc3edc2a9229dcfa5acc89 (diff) | |
| download | angular.js-c3d6ca97e1618fa7b770d60fdc37b12ff51c65ab.tar.bz2 | |
docs(guide/forms): clarify how NgModelController can be added to scope
Closes #5200
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: | 
