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:
parent
d3744457ab
commit
32c07ceca0
|
@ -18,7 +18,7 @@ export class AppComponent {
|
|||
}
|
||||
|
||||
deleteItem(item: Item) {
|
||||
alert(`Delete the ${item}.`);
|
||||
alert(`Delete the ${item.name}.`);
|
||||
}
|
||||
|
||||
onClickMe(event?: KeyboardEvent) {
|
||||
|
|
Loading…
Reference in New Issue