I have a column in a table that has an input field, I only want to show the input when the button is clicked. I was using ng-if to display when clicked, however when the button is clicked, all of the input elements display. I only want the input for a row to display.
HTML
<td *ngIf="!hideStockLevels && row.">
<div>
<button class="btn btn-primary" (click)="showInput(row)">Add unit</button>
</div>
</td>
<td *ngIf="!hideStockLevels && !this.isButtonVisible" [hidden]="this.isButtonVisible">
<input (focusout)="updateUnit(row)" class="inputWidth" [(ngModel)]="unitMap[row.id]" type="text" value="{{row.Unit}}" [disabled]="dateReceived !== null">
</td>
row.? and what isthis.isButtonVisible?