From 7ceef81be0ce707cf78b506996cc251fea2c6367 Mon Sep 17 00:00:00 2001 From: Martin Thorsen Ranang Date: Wed, 7 Jan 2015 12:28:40 +0100 Subject: [PATCH] docs(ngModelOptions): Config objects cannot be shared among ngModelOptions instances. --- src/ng/directive/ngModel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ng/directive/ngModel.js b/src/ng/directive/ngModel.js index 44cfdbddabfe..b811d90baefa 100644 --- a/src/ng/directive/ngModel.js +++ b/src/ng/directive/ngModel.js @@ -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. *