From bd94c076c7cca9c0a4073d8339f4676a6bdbbdc8 Mon Sep 17 00:00:00 2001 From: David Schmidt Date: Tue, 24 May 2022 14:24:44 +0200 Subject: [PATCH] docs: fix FormRecord example (#46124) PR Close #46124 --- aio/content/guide/typed-forms.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/typed-forms.md b/aio/content/guide/typed-forms.md index 7093729e635..789c0606a52 100644 --- a/aio/content/guide/typed-forms.md +++ b/aio/content/guide/typed-forms.md @@ -164,7 +164,7 @@ Some `FormGroup` usages do not fit the above pattern because the keys are not kn ```ts const addresses = new FormRecord>({}); -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`. -@reviewed 2022-05-10 \ No newline at end of file +@reviewed 2022-05-10