how to disable a button based on condition in html using typescript code example
Example: disable button typescript
(document.getElementById('button') as HTMLInputElement).disabled = false;
(document.getElementById('button') as HTMLInputElement).disabled = false;