mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(NgModelController): document $viewChangeListeners property
Closes #4948
This commit is contained in:
parent
f3d4fe6209
commit
4184ff8ff7
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue