From 29c3df2e8e80e02afae203f45cb85e0419979ed5 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Thu, 14 Nov 2013 01:46:01 -0500 Subject: [PATCH] docs(ngModel): describe $viewChangeListeners property --- src/ng/directive/input.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index da8825e34063..37d5663e0b1a 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -840,6 +840,10 @@ var VALID_CLASS = 'ng-valid', * } * ngModel.$formatters.push(formatter); * + * @property {Array.} $viewChangeListeners Array of functions to execute, as a pipeline, + * 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.