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

docs(ngModel.NgModelController): correct description for $viewChangeListeners #16382

Merged
merged 2 commits into from
Dec 29, 2017
Merged
Changes from 1 commit
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
5 changes: 3 additions & 2 deletions src/ng/directive/ngModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ var ngModelMinErr = minErr('ngModel');
* };
* ```
*
* @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.
* @property {Array.<Function>} $viewChangeListeners Array of functions to execute whenever
* a change to the view value has caused a change to the model value.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Can you please change "view value" and "model value" to "$viewValue" and "$modelValue" and link to them?

* 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 failing validator ids as keys.
Expand Down