Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 96dd35a

Browse files
thorn0Narretz
authored andcommitted
docs(ngModel.NgModelController): correct description for $viewChangeListeners
It was misleading. Closes #16382
1 parent 9a521cb commit 96dd35a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/ng/directive/ngModel.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ var ngModelMinErr = minErr('ngModel');
127127
* };
128128
* ```
129129
*
130-
* @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the
131-
* view value has changed. It is called with no arguments, and its return value is ignored.
130+
* @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever
131+
* a change to {@link ngModel.NgModelController#$viewValue `$viewValue`} has caused a change
132+
* to {@link ngModel.NgModelController#$modelValue `$modelValue`}.
133+
* It is called with no arguments, and its return value is ignored.
132134
* This can be used in place of additional $watches against the model value.
133135
*
134136
* @property {Object} $error An object hash with all failing validator ids as keys.

0 commit comments

Comments
 (0)