I have a table that lists items, each with an icon next to it. I want to be able to click on the icon and change its color individually. Currently, clicking on any icon only changes the color of the first one.
<table class="table table-borderless" style="background-color: #CCE4E9">
<tbody>
<tr *ngFor="let content of acts">
<td style="font-size: 14px;" *ngIf="content.status == 2;">{{content.description}}
</td>
<td>
<button id="addToSummary" class="mdc-icon-button material-icons" style="color: #FFFFFF;"
(click)="addToSummary()">grade</button>
</td>
</tr>
</tbody>
</table>
addToSummary(){
document.getElementById("addToSummary").style.color = "#3DA2DA";
}
https://i.sstatic.net/ajMMv.png
What steps do I need to take to change just one of them?