From fa8d324929dec06bb50e1d72b70c9342f3908ef1 Mon Sep 17 00:00:00 2001 From: ajitsinghkaler Date: Wed, 22 Jan 2020 21:41:30 +0530 Subject: [PATCH] docs: value changes emits on additional events documented (#34497) The value changes emitted additionally when enable disable were called documented the above behaviour in AbstractControl class documentaion Fixes #34407 PR Close #34497 --- packages/forms/src/model.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/forms/src/model.ts b/packages/forms/src/model.ts index b91db362e6..70c42481ea 100644 --- a/packages/forms/src/model.ts +++ b/packages/forms/src/model.ts @@ -294,7 +294,8 @@ export abstract class AbstractControl { /** * A multicasting observable that emits an event every time the value of the control changes, in - * the UI or programmatically. + * the UI or programmatically. It also emits an event each time you call enable() or disable() + * without passing along {emitEvent: false} as a function argument. */ // TODO(issue/24571): remove '!'. public readonly valueChanges !: Observable;