Good morning !! I have a html
table and need to delete a row of it with a typescript
(angular 2, preferably) function ... The following is the Table Code:
<div class="col-md-12">
<div *ngIf="itens.length" class="table-responsive">
<table class="table">
<thead class="thead-dark">
<tr>
<th></th>
<th class="text-center">Código</th>
<th class="text-center">Descrição</th>
<th class="text-center">Quantidade</th>
<th class="text-center">Preço Digitado</th>
<th class="text-center">Preço Total</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let item of itens">
<th class="text-center">
<input type="button" value="" (click)="removerLinha(this)" />
</th>
<td class="text-center">{{item.codigoProduto}}</td>
<td class="text-center">{{haha}}</td>
<td class="text-center">{{item.Quantidade}}x</td>
<td class="text-center">{{item.PrecoDigitado | currency: 'BRL': true}}</td>
<td class="text-center"></td>
</tr>
</tbody>
</table>
</div>
</div>