Here is the code snippet I am currently working with:
<button *ngFor="let group of groupsList" attr.data-index="{{ group.index }}" (click)="processGroups(group.index)">{{ group.title }}</button>
I am trying to figure out if it is possible to dynamically add a class called clicked
to the button that is currently being clicked on. And then, remove the class if another button is clicked?