File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,14 @@ This ensures that the user is not distracted with an error until after interacti
115
115
116
116
A form is an instance of {@link api/ng.directive:form.FormController FormController}.
117
117
The form instance can optionally be published into the scope using the `name` attribute.
118
- Similarly, control is an instance of {@link api/ng.directive:ngModel.NgModelController NgModelController}.
119
- The control instance can similarly be published into the form instance using the `name` attribute.
120
- 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.
118
+
119
+ Similarly, an input control that has the {@link api.ng.directive:ng-model} directive holds an
120
+ instance of {@link api/ng.directive:ngModel.NgModelController NgModelController}.
121
+ Such a control instance can be published as a property of the form instance using the `name` attribute
122
+ on the input control. The name attribute specifies the name of the property on the form instance.
123
+
124
+ This implies that the internal state of both the form and the control is available for binding in
125
+ the view using the standard binding primitives.
121
126
122
127
This allows us to extend the above example with these features:
123
128
You can’t perform that action at this time.
0 commit comments