Collapse area with a data loop

I looked in the documentation but I did not find any reference.

This is my code:

<div class="row mt-4" *ngFor="let row of rows">
    <div class="col-12">
        <button class="btn btn-link" (click)="isCollapsed = !isCollapsed"
          [attr.aria-expanded]="!isCollapsed" aria-controls="collapseExample">
            <i class="fa" aria-hidden="true"></i>
            Details
        </button>
        <div id="collapse" [ngbCollapse]="isCollapsed">
            {{ row.detail}}
        </div>
    </div>
</div>

when the detail button is clicked all the area expand

I opened a question in stackoverflow. I believe it would be relevant to put this type of information in the documentation

1 possible answer(s) on “Collapse area with a data loop