docs(NgModelController): document $viewChangeListeners property

Closes #4948
This commit is contained in:
Caitlin Potter 2013-11-14 01:46:01 -05:00 committed by Pete Bacon Darwin
parent f3d4fe6209
commit 4184ff8ff7

View file

@ -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.