Skip to content

Commit

Permalink
docs(forms): fix FormRecord usage notes (#46299)
Browse files Browse the repository at this point in the history
FormRecod usegaesNotes were like it accetps simple object like a FormBuilder.
PR Close #46299
  • Loading branch information
Totati authored and jessicajaniuk committed Jun 8, 2022
1 parent 4fe52c0 commit 8115031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/forms/src/model/form_group.ts
Expand Up @@ -618,8 +618,8 @@ export const isFormGroup = (control: unknown): control is FormGroup => control i
* @usageNotes
*
* ```
* let numbers = new FormRecord({bill: '415-123-456'});
* numbers.addControl('bob', '415-234-567');
* let numbers = new FormRecord({bill: new FormControl('415-123-456')});
* numbers.addControl('bob', new FormControl('415-234-567'));
* numbers.removeControl('bill');
* ```
*
Expand Down

0 comments on commit 8115031

Please sign in to comment.