Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs(ngModel): describe $viewChangeListeners property #4948

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ng/directive/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,10 @@ var VALID_CLASS = 'ng-valid',
* }
* ngModel.$formatters.push(formatter);
* </pre>
* @property {Array.<Function>} $viewChangeListeners Array of functions to execute, as a pipeline,
* 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.
Expand Down