You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Ward: `firstName` appears here (below) for the first time without any mention it was coming and isn't in the
854
-
code sample. Do we mean `name` instead?
855
-
856
851
:marked
857
-
This code sets the input box `value` property by binding to the `firstName` property. To listen for changes to the value, the code binds to the input box's `input` event.
852
+
This code sets the input box `value` property by binding to the `name` property. To listen for changes to the value, the code binds to the input box's `input` event.
858
853
When the user makes changes, the `input` event is raised, and the binding executes the statement within a context that includes the DOM event object, `$event`.
859
854
860
-
To update the `firstName` property, the changed text is retrieved by following the path `$event.target.value`.
855
+
To update the `name` property, the changed text is retrieved by following the path `$event.target.value`.
861
856
862
857
If the event belongs to a directive (recall that components are directives), `$event` has whatever shape the directive decides to produce.
863
858
@@ -1416,7 +1411,7 @@ a#ref-var
1416
1411
1417
1412
In most cases, Angular sets the reference variable's value to the element on which it was declared.
1418
1413
In the previous example, `phone` refers to the _phone number_ `<input>` box.
1419
-
The phone button click handler passes the _input_ value to the component's `phoneCall` method.
1414
+
The phone button click handler passes the _input_ value to the component's `callPhone` method.
1420
1415
But a directive can change that behavior and set the value to something else, such as itself.
0 commit comments