在表格中添加动作列,其中动作行来自ng-content

我为表创建了共享组件,可以在其中传递标题和数据,因此可以在其他多个组件中使用它。

Now the scenario is in one component I want an Edit button in each row and in second component I want Active/Inactive radio button, so I use <ng-content> but it will added to only last row of the table.

Here is sample code: https://stackblitz.com/edit/angular-ivy-mvcbrk