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'
|
* last: 'last'
|
||||||
* });
|
* });
|
||||||
*
|
*
|
||||||
* console.log(this.form.value); // {first: 'name', last: 'last name'}
|
* console.log(form.value); // {last: 'last'}
|
||||||
* console.log(this.form.get('first').status); // 'DISABLED'
|
* console.log(form.get('first').status); // 'DISABLED'
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
reset(value: any = {}, options: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {
|
reset(value: any = {}, options: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {
|
||||||
|
|
Loading…
Reference in New Issue