It is possible when we are defining a variable in JS file which will be loaded from static resource and want to use that variable in the Lightning controller as shown in this answer.
I want to do exactly vice versa from the above situation. See explanation below -
- I will define a variable in Lightning controller and I want to access this variable in the JS file which is loaded from the static resource.
Please give your thoughts. Thanks in advance.