Send *ngFor value as parameter on click

后端 未结 3 1424
长情又很酷
长情又很酷 2021-02-20 07:47

I\'m making a little application in Angular 2, I\'m displaying a table with some data, I wanna get that data when I make a click on my table

Here\'s the code:

HT

3条回答
  •  萌比男神i
    2021-02-20 08:16

    See the EventEmitter documentation, your custom component should basically look like the example there, implementing the Output() directive and an EventEmitter

提交回复
热议问题