Skip to content

Commit 09cc458

Browse files
lovelangyalxhub
authored andcommitted
docs: type fix (angular#26386)
according to the source code and the doc https://angular.io/api/forms/NgModel#inherited-from-formsngcontrol-1, the method name should be "viewToModelUpdate" instead of "viewToModel" PR Close angular#26386
1 parent efe0c5f commit 09cc458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aio/content/guide/forms-overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The steps below outline the view to model data flow.
128128
1. The control value accessor attached to the input triggers the `setValue()` method on the `FormControl` instance.
129129
1. The `FormControl` instance emits the new value through the `valueChanges` observable.
130130
1. Any subscribers to the `valueChanges` observable receive the new value.
131-
1. The control value accessor also calls the `NgModel.viewToModel()` method which emits an `ngModelChange` event.
131+
1. The control value accessor also calls the `NgModel.viewToModelUpdate()` method which emits an `ngModelChange` event.
132132
1. Because the component template uses two-way data binding for the `favoriteColor`, the `favoriteColor` property in the component
133133
is updated to the value emitted by the `ngModelChange` event ("Blue").
134134

0 commit comments

Comments
 (0)