Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4d6a778

Browse files
jdavisp3petebacondarwin
authored andcommitted
docs(ngModel): fix grammar and improve clarity
Closes #4291
1 parent 281feba commit 4d6a778

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ng/directive/input.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1145,18 +1145,18 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
11451145
* @element input
11461146
*
11471147
* @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.
11511151
*
11521152
* `ngModel` is responsible for:
11531153
*
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}.
11601160
*
11611161
* Note: `ngModel` will try to bind to the property given by evaluating the expression on the
11621162
* current scope. If the property doesn't already exist on this scope, it will be created

0 commit comments

Comments
 (0)