Actually I am stuck in this thing .
What I want to do is that I have 3 buttons in my Component.html file in angular and what I need is that when I load the page only the button (Get Bank Details) should be enabled and the other two should be disabled then after I click the (Get Bank Details) button it should become disable now and the next button (See Bank Details) should be enable now leaving the other 2 buttons disabled and the when I click on (See Bank Details) button the 3rd button (Go to Update Bank) should now become enabled and the rest 2 diasabled.
If I explain in an easy manner
on Page Load : 1 Button - enabled , 2 Button - disabled , 3 Button - disabled
After 1 Button clicked : 1 Button - disabled , 2 Button - enabled , 3 Button - disabled
After 2 Button clicked : 1 Button - disabled , 2 Button - disabled , 3 Button - enabled
** This is the HTML code**
<div style="width: 2000px; padding: auto;">
<button id="button1" class="btn btn--radius-2 btn--red" type="submit" >Get Bank Details</button> |
<button class="btn btn--radius-2 btn--red" type="submit" (click)="getBankById()" >See Bank Details</button> |
<button class="btn btn--radius-2 btn--red" type="submit" (click)="router.navigate(['/home/patchBank']);">Go to Update Bank</button>
</div>