K
K
Konstantin2020-02-10 00:14:05
Angular
Konstantin, 2020-02-10 00:14:05

Does it make sense to make the click function asynchronous?

Does it make sense to make the click function asynchronous?

When a button click performs an operation that requires some indefinite execution time?

Is the user interface blocked in this case?

How to do it right?

The click comes from a template(click)="do()"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-10
@Junart1

No. Doesn't have.
If some long, blocking operation is being performed - take it out to the worker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question