In my component, there is an HTML structure like this:
<div id="catalogo" class="container">
<div class="row">
<div *ngFor="let artista of artistas" class="col-sm" style="margin-top:20px">
<div class="card border-dark text-center" style="width: 18rem;">
<div class="card-header">
<h5>{{artista.name}}</h5>
</div>
<img src={{artista.img}} class="__card-img-top" alt="...">
<div class="card-body">
<h6 class="mb-2">
{{artista.emoji}}
</h6>
<button (click)="onClick()" type="button" class="btn btn-info btn-sm mr-1 mb-1">
ℹ️ — Discografia
</button>
<div *ngIf="this.conteudoVisivel" class="__albumInfo">
<hr>
<p>{{artista.album[0]}}</p>
<p>{{artista.album[1]}}</p>
<p>{{artista.album[2]}}</p>
</div>
</div>
</div>
</div>
</div>
Each instance of this component displays different information through text interpolation.
There seems to be a problem where clicking on one button affects all the cards instead of just its specific card.
https://i.stack.imgur.com/SE8MC.png
Although there are multiple buttons in the code, only one is visible in the HTML. How can I differentiate between the buttons and assign them individual click functionalities?