aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Minar2013-08-08 23:07:46 -0700
committerIgor Minar2013-08-08 23:08:40 -0700
commit43997c15406d0401525f3d2d72914b28850905e1 (patch)
treea5e91059d55196beb03abe0c40f330fc94982f11 /src
parentaf2cda3687314e13bc25b558d3fbf9c40ec46f0d (diff)
downloadangular.js-43997c15406d0401525f3d2d72914b28850905e1.tar.bz2
docs(ngModel): clarify docs for NgModelController#
Closes #3498
Diffstat (limited to 'src')
-rw-r--r--src/ng/directive/input.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index 4880b9b1..7a07f271 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -1042,8 +1042,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.
*/