mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-06 09:01:31 +08:00
docs(NgModelController): document $viewChangeListeners property
Closes #4948
This commit is contained in:
committed by
Pete Bacon Darwin
parent
f3d4fe6209
commit
4184ff8ff7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user