aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Peticolas2013-10-05 15:00:50 -0700
committerPete Bacon Darwin2013-10-07 14:41:08 +0100
commit90ff8a98d84e2c0f240d89d362e6131c621e4cc1 (patch)
tree049b267c9828ded3683fdf1599085f13154830b3 /src
parenta4dc21ebf53165c70c49c300174714e0921af510 (diff)
downloadangular.js-90ff8a98d84e2c0f240d89d362e6131c621e4cc1.tar.bz2
docs(ngModel): fix grammar and improve clarity
Closes #4291 Conflicts: src/ng/directive/input.js
Diffstat (limited to 'src')
-rw-r--r--src/ng/directive/input.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index f1c51bf9..3d185930 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -1110,17 +1110,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`. You can easily write your own directives to use `ngModel` as well.
+ * 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