aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2013-08-08 23:07:46 -0700
committerIgor Minar2013-08-08 23:08:08 -0700
commite290aa8c13205009b763f65a661a7fbcabc867ab (patch)
treea516215a455d4b3bcedd89a9939413c0983e5ef0
parent9c51d503188efae14b81bd4d6dd7d5a3363f050f (diff)
downloadangular.js-e290aa8c13205009b763f65a661a7fbcabc867ab.tar.bz2
docs(ngModel): clarify docs for NgModelController#
Closes #3498
-rw-r--r--src/ng/directive/input.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index 74c1bb4e..6a4a5f9e 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -825,7 +825,7 @@ var VALID_CLASS = 'ng-valid',
* Note that you cannot use `NgModelController` in a directive with an isolated scope,
* as, in that case, the `ng-model` value gets put into the isolated scope and does not get
* propogated to the parent scope.
- *
+ *
*
* This example shows how to use `NgModelController` with a custom control to achieve
* data-binding. Notice how different directives (`contenteditable`, `ng-model`, and `required`)
@@ -1005,8 +1005,10 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
* For example {@link ng.directive:input input} or
* {@link ng.directive:select select} directives call it.
*
- * It internally calls all `parsers` and if resulted value is valid, updates the model and
- * calls all registered change listeners.
+ * It internally calls all `parsers` (including validators) and updates the `$modelValue` and the actual model path.
+ * Lastly it calls all registered change listeners.
+ *
+ * If validators determine the value is invalid, the `$modelValue` and the model path will be set to `undefined`.
*
* @param {string} value Value from the view.
*/