Answer the question
In order to leave comments, you need to log in
Why is the ng-container event not working?
<ng-container *ngFor="let ware of task.wares" (click)="deleteWares(ware)">
<tr></tr>
</ng-container>
Answer the question
In order to leave comments, you need to log in
ng-container does not create an html element, there is nothing to catch the click event.
If you have a table, then it is more logical to do
<tr *ngFor="let ware of task.wares" (click)="deleteWares(ware)">
<ng-container></ng-container>
</tr>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question