Skip to content

Commit d589540

Browse files
Caitlin Potterjamesdaily
Caitlin Potter
authored andcommitted
docs(NgModelController): document $viewChangeListeners property
Closes angular#4948
1 parent d9b2ec9 commit d589540

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ng/directive/input.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,11 @@ var VALID_CLASS = 'ng-valid',
840840
* }
841841
* ngModel.$formatters.push(formatter);
842842
* </pre>
843+
*
844+
* @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever the
845+
* view value has changed. It is called with no arguments, and its return value is ignored.
846+
* This can be used in place of additional $watches against the model value.
847+
*
843848
* @property {Object} $error An object hash with all errors as keys.
844849
*
845850
* @property {boolean} $pristine True if user has not interacted with the control yet.

0 commit comments

Comments
 (0)