From e653a7bf30282b04a2018a23aceb3dbd656233c0 Mon Sep 17 00:00:00 2001 From: aparziale Date: Wed, 24 Jun 2026 17:24:24 +0200 Subject: [PATCH] docs(forms): correct signal field access in form model example The `myForm` field is a callable `FieldTree`, so its value must be read via `this.myForm().value()`. Fixes two examples that incorrectly used `this.myForm.value()`. --- .../content/guide/forms/signals/designing-your-form-model.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adev/src/content/guide/forms/signals/designing-your-form-model.md b/adev/src/content/guide/forms/signals/designing-your-form-model.md index f851af4d4a6..e4389576f2b 100644 --- a/adev/src/content/guide/forms/signals/designing-your-form-model.md +++ b/adev/src/content/guide/forms/signals/designing-your-form-model.md @@ -380,7 +380,7 @@ class MyForm { handleSubmit() { submit(this.myForm, async () => { - await this.myDataService.update(formModelToDomainModel(this.myForm.value())); + await this.myDataService.update(formModelToDomainModel(this.myForm().value())); }); }; } @@ -402,7 +402,7 @@ class MyForm { effect(() => { // When the form model changes to a valid value, update the domain model. if (this.myForm().valid()) { - this.domainModel.set(formModelToDomainModel(this.myForm.value())); + this.domainModel.set(formModelToDomainModel(this.myForm().value())); } }); };