<button (click) = "onSave()" [disabled]="true" > Save </button>
All I expect is to have the button turned grey in the beginning. Even with disabled being true, I am still able to click on it and the corresponding function gets called.
<button (click) = "onSave()" [disabled]="true" > Save </button>
All I expect is to have the button turned grey in the beginning. Even with disabled being true, I am still able to click on it and the corresponding function gets called.
Your code is right. Look this working example. Did you try to clear you cache on your browser? Are you sure that your code dosen't affect the buttons and you overwrite this disable attribute?