I want to use single varible for multiple buttons to enable and disable, individually.
<button class="button" [disabled]="btnState" (click)="function('val1')"> button 1</button>
<button class="button" [disabled]="btnState" (click)="function('val2')"> button 2</button>
<button class="button" [disabled]="btnState" (click)="function('val3')"> button 3</button>
<button class="button" [disabled]="btnState" (click)="function('val4')"> button 4</button>
How do I enable or disable the above buttons individually based on selection? I tried only with a result of disabling all of them or enabling all of them.