<div formArrayName="addGrp">
<div id="ifElse_block" class="create-rules-section" *ngFor="let grp of addGrp().controls; let k=index" [formGroupName]="k">
<div formGroupName="ifBlockRule" class="ifBlockRule">
<!-- how disable below button after one click in each array element-->
<button mat-raised-button color="primary" type="button" class="addGrpCond" (click)="ifBlockAddGrpCondition(k)" [disabled]="addGrpBtnclicked" title="Add group condition">
<mat-icon>add</mat-icon>
</button>
<!-- how disable above button after one click in each array element-->
</div>
</div>
</div>
How to disable the button mentioned in commented lines after one click in array element? I am new to angular.