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
This commit is contained in:
George Kalpakas 2019-07-17 19:50:24 +03:00 committed by Matias Niemelä
parent d3744457ab
commit 32c07ceca0
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export class AppComponent {
}
deleteItem(item: Item) {
alert(`Delete the ${item}.`);
alert(`Delete the ${item.name}.`);
}
onClickMe(event?: KeyboardEvent) {