diff options
| author | Caitlin Potter | 2013-11-14 01:46:01 -0500 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-11-14 14:13:22 +0000 | 
| commit | 4184ff8ff78e1fc42e5e32b88536b079ac4fa9cf (patch) | |
| tree | 6a5a0fcdd49f6cb3476dc437c96896c27fb6e81e /src/ng/directive | |
| parent | f3d4fe62094467ec786efecf25296da81c6fa61c (diff) | |
| download | angular.js-4184ff8ff78e1fc42e5e32b88536b079ac4fa9cf.tar.bz2 | |
docs(NgModelController): document `$viewChangeListeners` property
Closes #4948
Diffstat (limited to 'src/ng/directive')
| -rw-r--r-- | src/ng/directive/input.js | 5 | 
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. | 
