@@ -1145,18 +1145,18 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
1145
1145
* @element input
1146
1146
*
1147
1147
* @description
1148
- * Is a directive that tells Angular to do two-way data binding. It works together with `input`,
1149
- * `select`, `textarea` and even custom form controls that use {@link ng.directive:ngModel.NgModelController
1150
- * NgModelController} exposed by this directive.
1148
+ * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a
1149
+ * property on the scope using {@link ng.directive:ngModel.NgModelController NgModelController},
1150
+ * which is created and exposed by this directive.
1151
1151
*
1152
1152
* `ngModel` is responsible for:
1153
1153
*
1154
- * - binding the view into the model, which other directives such as `input`, `textarea` or `select`
1155
- * require,
1156
- * - providing validation behavior (i.e. required, number, email, url),
1157
- * - keeping state of the control (valid/invalid, dirty/pristine, validation errors),
1158
- * - setting related css class onto the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`),
1159
- * - register the control with parent {@link ng.directive:form form}.
1154
+ * - Binding the view into the model, which other directives such as `input`, `textarea` or `select`
1155
+ * require.
1156
+ * - Providing validation behavior (i.e. required, number, email, url).
1157
+ * - Keeping the state of the control (valid/invalid, dirty/pristine, validation errors).
1158
+ * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`).
1159
+ * - Registering the control with its parent {@link ng.directive:form form}.
1160
1160
*
1161
1161
* Note: `ngModel` will try to bind to the property given by evaluating the expression on the
1162
1162
* current scope. If the property doesn't already exist on this scope, it will be created
0 commit comments