Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 87674d9

Browse files
Josh68wardbell
authored andcommitted
Update template-syntax.jade (#3226)
docs(Template Syntax): remove one of the callouts to author and other fixes
1 parent 7decccf commit 87674d9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

public/docs/ts/latest/guide/template-syntax.jade

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -848,16 +848,11 @@ a#event-binding
848848
Consider this example:
849849
+makeExample('template-syntax/ts/src/app/app.component.html', 'without-NgModel')(format=".")
850850

851-
.alert.is-critical
852-
:marked
853-
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-
856851
: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.
858853
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`.
859854

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`.
861856

862857
If the event belongs to a directive (recall that components are directives), `$event` has whatever shape the directive decides to produce.
863858

@@ -1416,7 +1411,7 @@ a#ref-var
14161411

14171412
In most cases, Angular sets the reference variable's value to the element on which it was declared.
14181413
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.
14201415
But a directive can change that behavior and set the value to something else, such as itself.
14211416
The `NgForm` directive does that.
14221417

0 commit comments

Comments
 (0)