You need to sign in to do that
Don't have an account?
call multiple methods in client side controller synchronously
Hi
I want to call multiple methods in client side controller synchronously i.e. in a particular sequence so that I can use the response from one in second one and so on.
How can I achieve this in lightning client side components?
Regards,
Abhinav Sharma
I want to call multiple methods in client side controller synchronously i.e. in a particular sequence so that I can use the response from one in second one and so on.
How can I achieve this in lightning client side components?
Regards,
Abhinav Sharma
Utilize call backs to guarantee the first method is finished, before calling the second method, and so on. Here's an example: