We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c1d229 commit a1f5f52Copy full SHA for a1f5f52
1 file changed
adev/src/content/guide/forms/signals/models.md
@@ -184,7 +184,7 @@ resetForm() {
184
185
This approach works well when loading data from an API or resetting the entire form.
186
187
-### Update a single field directly with `set()`
+### Update a single field directly with `set()` or `update()`
188
189
Use `set()` on individual field values to directly update the field state:
190
@@ -194,8 +194,7 @@ clearEmail() {
194
}
195
196
incrementAge() {
197
- const currentAge = this.userForm.age().value();
198
- this.userForm.age().value.set(currentAge + 1);
+ this.userForm.age().value.update(currentAge => currentAge + 1);
199
200
```
201
0 commit comments