如何解决在 angular 12 中的每个 formArray 元素中单击一次后,如何禁用 formArray 的特定单击事件?
<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>
如何在数组元素中单击后禁用注释行中提到的按钮?我是 angular 的新手。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。