I have a tool for storing information and I am using *ngFor to display each instance in a line.
Is there a way to add a border when clicking on a line? The border should only appear on the clicked line, disappearing from the previous one if another line is clicked.
Any suggestions on how to achieve this effect?
.html
<div *ngFor="let item of objects; let i = index" style="width: 100%;">
<div class="d-flex flex-row divs">
<div>
<span>{{item.id}}</span>
</div>
<div>
<div>
<span>{{item.name}}</span>
</div>
</div>
<div style="margin-left:auto">
<button>click</button>
</div>
</div>
</div>