docs: fix FormRecord example (#46124)

PR Close #46124
This commit is contained in:
David Schmidt
2022-05-24 14:24:44 +02:00
committed by Alex Rickabaugh
parent 0b6ca5b807
commit bd94c076c7
+2 -2
View File
@@ -164,7 +164,7 @@ Some `FormGroup` usages do not fit the above pattern because the keys are not kn
```ts
const addresses = new FormRecord<FormControl<string|null>>({});
names.addControl('Andrew', new FormControl('2340 Folsom St'));
addresses.addControl('Andrew', new FormControl('2340 Folsom St'));
```
Any control of type `string|null` can be added to this `FormRecord`.
@@ -197,4 +197,4 @@ You can also inject it using the name `NonNullableFormBuilder`.
<!-- end links -->
@reviewed 2022-05-10
@reviewed 2022-05-10