1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

zoneless best approach to render after await

Discussão em 'Angular' iniciado por Ibrahim Ali, Junho 18, 2025.

  1. Ibrahim Ali

    Ibrahim Ali Guest

    .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...

Compartilhe esta Página