From 215e9069e3eb550cc5c6f078d85eded7292564ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94=D0=BC=D0=B8?= =?UTF-8?q?=D1=82=D1=80=D0=B8=D0=B9?= Date: Mon, 14 Oct 2019 15:21:21 +0700 Subject: [PATCH] docs(forms): fix example 'Reset the form group values and disabled status' (#33137) PR Close #33137 --- packages/forms/src/model.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/forms/src/model.ts b/packages/forms/src/model.ts index a4cc280c2f..7fc2bb9ea4 100644 --- a/packages/forms/src/model.ts +++ b/packages/forms/src/model.ts @@ -1638,8 +1638,8 @@ export class FormGroup extends AbstractControl { * last: 'last' * }); * - * console.log(this.form.value); // {first: 'name', last: 'last name'} - * console.log(this.form.get('first').status); // 'DISABLED' + * console.log(form.value); // {last: 'last'} + * console.log(form.get('first').status); // 'DISABLED' * ``` */ reset(value: any = {}, options: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {