<tr *ngFor = 'let student of students>
<td contenteditable="true" class ='phone' #button>
{{student.phone}}
<i (click)='showbox()' class = ' glyphicon glyphicon-edit'></i>
<input *ngIf='showinput' type="text"
class="phone form-control required email " style="height:38px;">
</td>
</tr>
showbox(){
this.showinput = true;
}
Whenever the <td>
is clicked, it should open an input tag. However, currently, clicking on one column opens it for other columns as well. Can anyone offer some guidance on how to resolve this issue?