From ac8b87eb5e28b99ccf416e89e8abfd8e951e2900 Mon Sep 17 00:00:00 2001 From: Elior Boukhobza Date: Wed, 30 Dec 2015 21:47:51 +0200 Subject: [PATCH] docs(template-syntax): typo closes #627 --- 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 fe7d0b48d4..4618201d58 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -578,7 +578,7 @@ code-example(format="", language="html"). Now imagine a parent component that listens for that event with an Event Binding. +makeExample('template-syntax/ts/app/app.component.html', 'event-binding-to-component')(format=".") :marked - The event binding surfaces the *hero-to-delete* emitted by `HeroDetail` to the expression via the `$hero` variable. + The event binding surfaces the *hero-to-delete* emitted by `HeroDetail` to the expression via the `$event` variable. We pass it along to the parent `onHeroDeleted()` method. That method presumably knows how to delete the hero.