I'm developing a webapp in dart angular2. When I submit a form, the browser is stuck (the process time can be quite long). Is there a way to do it asynchronously ?
I have in my template :
<form (ngSubmit)="onSubmit()"
and the corresponding method :
onSubmit() async {
longProcess();
}
The method 'longProcess()' does not call a server. Only local computation.
Thanks for your help.