mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: Update adev/src/content/guide/forms/signals/models.md
Co-authored-by: Matthieu Riegler <kyro38@gmail.com>
(cherry picked from commit 29223c440f)
This commit is contained in:
parent
1ee0ff8cfb
commit
e95d2e3a34
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ export class UserComponent {
|
|||
userForm = form(this.userModel)
|
||||
|
||||
setName(name: string) {
|
||||
userForm.name().value.set(name);
|
||||
this.userForm.name().value.set(name);
|
||||
// Input automatically displays 'Bob'
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue