mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
committed by
Alex Rickabaugh
parent
0b6ca5b807
commit
bd94c076c7
@@ -164,7 +164,7 @@ Some `FormGroup` usages do not fit the above pattern because the keys are not kn
|
|||||||
|
|
||||||
```ts
|
```ts
|
||||||
const addresses = new FormRecord<FormControl<string|null>>({});
|
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`.
|
Any control of type `string|null` can be added to this `FormRecord`.
|
||||||
|
|||||||
Reference in New Issue
Block a user