From c2f59ff2bfa861a9ed0745752735283696d9fe20 Mon Sep 17 00:00:00 2001 From: Thomas Jeffery <82968683+twjeffery@users.noreply.github.com> Date: Fri, 27 Jun 2025 16:22:19 -0600 Subject: [PATCH] docs: update reactive snippet for input --- src/routes/components/TextField.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/components/TextField.tsx b/src/routes/components/TextField.tsx index 99c45cc6a..f6b2ba52b 100644 --- a/src/routes/components/TextField.tsx +++ b/src/routes/components/TextField.tsx @@ -687,7 +687,9 @@ export default function TextFieldPage() { code={` // reactive code export class SomeComponent { - itemFormCtrl = new FormControl(""); + form = new FormGroup({ + item: new FormControl("") + }); } `} />