Angular: button with loading state

Discussão em 'Angular' iniciado por Maxime Thomasson, Setembro 15, 2025.

  1. I am pretty new to Angular (6), and I am trying to build a button with a loading state.

    Basically I want to right in the html: <my-special-button (click)="doSomething()"></my-special-button> And that MySpecialButton component subscribe on its own to the observable returned by doSomething() in a generic way so that it can update its status (without having to add a boolean in the parent component to update the status)

    In AngularJS I would simply use the "@" binding, but I can't find a proper solution in Angular 6.

    Does anyone have a clue?

    Continue reading...

Compartilhe esta Página