aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/input.js
diff options
context:
space:
mode:
authorCaitlin Potter2013-11-14 01:46:01 -0500
committerPete Bacon Darwin2013-11-14 14:13:22 +0000
commit4184ff8ff78e1fc42e5e32b88536b079ac4fa9cf (patch)
tree6a5a0fcdd49f6cb3476dc437c96896c27fb6e81e /src/ng/directive/input.js
parentf3d4fe62094467ec786efecf25296da81c6fa61c (diff)
downloadangular.js-4184ff8ff78e1fc42e5e32b88536b079ac4fa9cf.tar.bz2
docs(NgModelController): document `$viewChangeListeners` property
Closes #4948
Diffstat (limited to 'src/ng/directive/input.js')
-rw-r--r--src/ng/directive/input.js5
1 files changed, 5 insertions, 0 deletions
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);
* </pre>
+ *
+ * @property {Array.<Function>} $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.