markdown guide

I guess you can bind the disable property of the button and use the ngOnChanges hook to check the status.


you have to bind the button property


Then in your ts create a variable isDisabled with type boolean so it can either be true or false.
Then include an onChanges hooks(like onInit).
Then inside the hook function you can do the cases

if(status === 'pending') {
this.isDisabled = true;

Classic DEV Post from Jul 30 '19

What's your favorite question to be asked?

Akhil Ashok profile image
Angular developer

dev.to now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️