My HTML has the following code:
button (click)="doFunc()"
In my ts-file I have the following:
doFunc(){
this.service.executeAFuncWhichIsAsynchronous().subscribe(x => { updateMyUi(); });
}
When I click the button twice, two service calls are made. I don't want this to happen. Instead, subsequent clicks should be ignored.
How can I accomplish this?