Does it make sense to make a function asynchronous clique?

Does it make sense to make a function asynchronous clique?

When clicking on a button operation is performed that requires some undefined run-time?

Is blocked in this case user interface?

How to do it?

Click happens from a template (click)="do()"
April 7th 20 at 10:54
1 answer
April 7th 20 at 10:56
No. Has not.
If you are running some long blocking operation - take it to the worker
And what operations in the JS block I/o operation with the interface? - lilly.Runte commented on April 7th 20 at 10:59
@lilly.Runte, Formal all, as JS single-threaded. But some APIs can work in another thread - Clarissa.Wehner58 commented on April 7th 20 at 11:02

Find more questions by tags AngularTypeScript