disable an angular button using typescript code example
Example 1: disable button typescript
(document.getElementById('button') as HTMLInputElement).disabled = false;
Example 2: button disabled angular
<form #f="ngForm" (ngSubmit)="onSubmit(f)" novalidate>
<input required name="uri" [(ngModel)]="data">
<button [disabled]="!f.valid">Submut</button>
</form>