From 2413301af87d69bd11114f9fcb62849de4b91f5c Mon Sep 17 00:00:00 2001 From: Kang Li Date: Fri, 6 Jul 2018 14:48:44 +0800 Subject: [PATCH] Update template-syntax.md --- aio/content/guide/template-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index 3b57c719f3..a49bd91377 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -1702,13 +1702,13 @@ To listen for changes to the value, the code binds to the input box's `input` ev 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`. -上面的代码在把输入框的 `value` 属性绑定到 `firstName` 属性。 +上面的代码在把输入框的 `value` 属性绑定到 `name` 属性。 要监听对值的修改,代码绑定到输入框的 `input` 事件。 当用户造成更改时,`input` 事件被触发,并在包含了 DOM 事件对象 (`$event`) 的上下文中执行这条语句。 To update the `name` property, the changed text is retrieved by following the path `$event.target.value`. -要更新 `firstName` 属性,就要通过路径 `$event.target.value` 来获取更改后的值。 +要更新 `name` 属性,就要通过路径 `$event.target.value` 来获取更改后的值。 If the event belongs to a directive (recall that components are directives), `$event` has whatever shape the directive decides to produce.