Skip to content

Commit 43997c1

Browse files
committed
docs(ngModel): clarify docs for NgModelController#
Closes angular#3498
1 parent af2cda3 commit 43997c1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ng/directive/input.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,8 +1042,10 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
10421042
* For example {@link ng.directive:input input} or
10431043
* {@link ng.directive:select select} directives call it.
10441044
*
1045-
* It internally calls all `parsers` and if resulted value is valid, updates the model and
1046-
* calls all registered change listeners.
1045+
* It internally calls all `parsers` (including validators) and updates the `$modelValue` and the actual model path.
1046+
* Lastly it calls all registered change listeners.
1047+
*
1048+
* If validators determine the value is invalid, the `$modelValue` and the model path will be set to `undefined`.
10471049
*
10481050
* @param {string} value Value from the view.
10491051
*/

0 commit comments

Comments
 (0)