.html <button mat-button (click)="clickDownload(id,dlBtn)" #dlBtn>Download</button> .ts async clickDownload(id: string, btn: MatButton) { btn.disabled = true; await this.sv.downloadFile(id); btn.disabled = false; } whats the best approach to render the UI after the await so that the btn doesnt stay disabled Continue reading...