function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arthur AlmeidaArthur Almeida 

How to call a JS by other JS in Aura Component

I have two components, Spinner and SaveAccount.

The component Spinner is to show loading, and the component SaveAccount is to save account but while don't save, must show loading.

I need to use SpinnerController.js in SaveAccount.js. HOW TO?

SaveAccountController.js
User-added image

SpinnerController.js
User-added image


How do I make this??? please!!!!!
Best Answer chosen by Arthur Almeida
Arthur AlmeidaArthur Almeida
This solve my problem:  aura: method.

https://salesforce.stackexchange.com/questions/357010/how-to-call-a-js-by-other-js-in-aura-component 

https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_tag_method.htm