I have a mat menu below with each of them has each own click value and with own disable properties , is there a way we can cleanly implement this or dynamically implement this without repeating the buttons and click as you see on the current progress below? something like dynamic
#code
<mat-menu #createDealMenu="matMenu" xPosition="before" yPosition="below">
<button [disabled]="!testID" (click)="createDeal(DEAL_TYPES.AC)" mat-menu-item>Portfolio Management - Approval to Close</button>
<button [disabled]="!pmRId" (click)="createDeal(DEAL_TYPES.PMT)" mat-menu-item>Portfolio Management - Termination Option</button>
<button [disabled]="!leaseId" (click)="createDeal(DEAL_TYPES.PMR)" mat-menu-item>{{DEAL_TYPES.PMR}}</button>
</mat-menu>