From 4184ff8ff78e1fc42e5e32b88536b079ac4fa9cf Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Thu, 14 Nov 2013 01:46:01 -0500 Subject: docs(NgModelController): document `$viewChangeListeners` property Closes #4948 --- src/ng/directive/input.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ng/directive/input.js') diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 7afffc2c..e264db38 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -840,6 +840,11 @@ var VALID_CLASS = 'ng-valid', * } * ngModel.$formatters.push(formatter); * + * + * @property {Array.} $viewChangeListeners Array of functions to execute whenever the + * view value has changed. It is called with no arguments, and its return value is ignored. + * This can be used in place of additional $watches against the model value. + * * @property {Object} $error An object hash with all errors as keys. * * @property {boolean} $pristine True if user has not interacted with the control yet. -- cgit v1.2.3