From aa010fb920897630c969ed98aba9232599c9f8b8 Mon Sep 17 00:00:00 2001 From: "Zhimin YE (Rex)" Date: Wed, 1 Jun 2016 14:56:54 +0100 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=AF=91=E6=B3=A8?= =?UTF-8?q?=EF=BC=8C=E8=A7=A3=E9=87=8AdeleteRequest=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=98=AFOutput=E5=B1=9E=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/docs/ts/latest/guide/template-syntax.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index d9bfe4806a..29fe1f1f82 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -1341,7 +1341,7 @@ block style-property-name-dart-diff When the user clicks *delete*, the component invokes the `delete()` method which tells the `EventEmitter` to emit a `Hero` object. - 组件定义了一个`deleteRequest`属性,它是一个`EventEmitter`实例。 + 组件定义了一个`deleteRequest`属性,它是一个`EventEmitter`实例。(译注:`deleteRequest`属性是导出Output属性,是组件与父级组件交互的主要方式之一。参见[父组件监听子组件的事件](docs/ts/latest/cookbook/component-communication.html#!#child-to-parent)。我们需要用`@Output()`来装饰它,或者把它添加到组件元数据的`outputs`数组中,它才能在父级组件可见。) 当用户点击*删除*时,组件会调用`delete()`方法,这个方法告诉`EventEmitter`,发出一个`Hero`对象。 Now imagine a hosting parent component that binds to the `HeroDetailComponent`'s `deleteRequest` event.