docs(forms): fix example 'Reset the form group values and disabled status' (#33137)

PR Close #33137
This commit is contained in:
Иванов Дмитрий 2019-10-14 15:21:21 +07:00 committed by Jessica Janiuk
parent 784667ca12
commit 215e9069e3
1 changed files with 2 additions and 2 deletions

View File

@ -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 {