docs(forms): fix example 'Reset the form group values and disabled status' (#33137)
PR Close #33137
This commit is contained in:
parent
784667ca12
commit
215e9069e3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user