From 32c07ceca061c60bf3b519d1583cfe6063c67bb5 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Wed, 17 Jul 2019 19:50:24 +0300 Subject: [PATCH] docs(core): fix typo in event-binding code example (#31611) `item` is an object, so it is stringified to `[object Object]`. Using its `name` property produces a more meaningful message. PR Close #31611 --- aio/content/examples/event-binding/src/app/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/event-binding/src/app/app.component.ts b/aio/content/examples/event-binding/src/app/app.component.ts index 69a76d6669..e8e7882d89 100644 --- a/aio/content/examples/event-binding/src/app/app.component.ts +++ b/aio/content/examples/event-binding/src/app/app.component.ts @@ -18,7 +18,7 @@ export class AppComponent { } deleteItem(item: Item) { - alert(`Delete the ${item}.`); + alert(`Delete the ${item.name}.`); } onClickMe(event?: KeyboardEvent) {