Timeline for How can I call other methods from the current method?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 12, 2021 at 20:20 | vote | accept | unique user | ||
Mar 12, 2021 at 20:19 | comment | added | unique user | Wow! With a little experimenting I got it. I understood. I didn't know it was possible! Thank you very much! | |
Mar 12, 2021 at 18:23 | comment | added | Menachem Shanowitz | Are you calling getDataFromDB from the controller? If so, pass in helper and then you will have a reference to all helper methods from within getDataFromDB (and you can in turn pass the helper reference to other helper functions) | |
Mar 12, 2021 at 18:09 | comment | added | unique user | I cannot call all functions from helper.js from the controller, because they will run at the same time and I will get an error. I need to call a helper function, which in turn will call another helper function at the end of its execution. | |
Mar 12, 2021 at 18:01 | comment | added | unique user |
Maybe I misunderstood, but my getDataFromDB : function(component){ function is already in "helper.js". And from it I need to call other functions, which are also already in "helper.js". I know how to call the functions located in "helper.js" from the controller.
|
|
Mar 12, 2021 at 15:03 | history | answered | Menachem Shanowitz | CC BY-SA 4.0 |