How to get the id of any element to in order to delete it by pressing delete from keyboard by using `@HostListener` in angular 2?

后端 未结 0 1598
南笙
南笙 2020-12-04 18:06

Here I\'m trying to delete a box from an array by pressing delete button from keyboard. Below is my following code.

In HTML.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题