diff options
| author | Dave Peticolas | 2013-10-05 15:00:50 -0700 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-07 14:37:28 +0100 | 
| commit | 4d6a7781d790fb5e2bdd847ffb0fb21652b57138 (patch) | |
| tree | f7923a8b72df1df50fd7c83d378bffc64a629f7a | |
| parent | 281feba4caffd14ffbd6dedfb95ad6415cff8483 (diff) | |
| download | angular.js-4d6a7781d790fb5e2bdd847ffb0fb21652b57138.tar.bz2 | |
docs(ngModel): fix grammar and improve clarity
Closes #4291
| -rw-r--r-- | src/ng/directive/input.js | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 8f7ff2c4..0accfb34 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -1145,18 +1145,18 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$   * @element input   *   * @description - * Is a directive that tells Angular to do two-way data binding. It works together with `input`, - * `select`, `textarea` and even custom form controls that use {@link ng.directive:ngModel.NgModelController - * NgModelController} exposed by this directive. + * The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a + * property on the scope using {@link ng.directive:ngModel.NgModelController NgModelController}, + * which is created and exposed by this directive.   *   * `ngModel` is responsible for:   * - * - binding the view into the model, which other directives such as `input`, `textarea` or `select` - *   require, - * - providing validation behavior (i.e. required, number, email, url), - * - keeping state of the control (valid/invalid, dirty/pristine, validation errors), - * - setting related css class onto the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`), - * - register the control with parent {@link ng.directive:form form}. + * - Binding the view into the model, which other directives such as `input`, `textarea` or `select` + *   require. + * - Providing validation behavior (i.e. required, number, email, url). + * - Keeping the state of the control (valid/invalid, dirty/pristine, validation errors). + * - Setting related css classes on the element (`ng-valid`, `ng-invalid`, `ng-dirty`, `ng-pristine`). + * - Registering the control with its parent {@link ng.directive:form form}.   *   * Note: `ngModel` will try to bind to the property given by evaluating the expression on the   * current scope. If the property doesn't already exist on this scope, it will be created | 
