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

docs(ngModelOptions): Config objects cannot be shared among ngModelOptions instances. #10667

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/ngModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,10 @@ var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
* Any pending changes will take place immediately when an enclosing form is submitted via the
* `submit` event. Note that `ngClick` events will occur before the model is updated. Use `ngSubmit`
* to have access to the updated model.
*
* Multiple `ngModelOptions` instances cannot share the same options Object. For example, supplying a
* shared debouncing "config" Object among multiple input elements will not work; create a copy of the
* Object instead.
*
* `ngModelOptions` has an effect on the element it's declared on and its descendants.
*
Expand Down