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

Commit 4184ff8

Browse files
Caitlin Potterpetebacondarwin
Caitlin Potter
authored andcommitted
docs(NgModelController): document $viewChangeListeners property
Closes #4948
1 parent f3d4fe6 commit 4184ff8

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)