-
Sharing Javascript between salesforce lightning components
Hi all,
In a Lightning Component we have the notion of a JavaScript controller and a helper. We can use the helper to call code from the JavaScript controller that is shared between functions, so we can reduce redundancy in the code. This all works great.However, I was wondering if it is possible, and if so how, to share code between multiple Lightning Components. It doesn't behave like Apex where you can just reference other class.
Is there any hack for this?
Thanks
Log In to reply.
Popular Salesforce Blogs
What is Salesforce AppExchange Development, and How Does it Help Your Business?
Salesforce has a plethora of features that help businesses across the globe to be more efficient and boost their success. However, you might encounter some…
How to Hire Salesforce Developers During the 2023 Economic Downturn?
The pressure of economic recession is lurking around and spending on technology is expected to take a downturn. However, when it comes to the Customer…
Discover Why Salesforce Einstein Analytics is the Trump Card for E-commerce Transformation
Businesses and customers have observed humongous values in automation and insights that deliver valuable, productive and gratifying encounters. However, there is a dramatic landscape change…
Popular Salesforce Videos
Salesforce and Slack: Success from Anywhere - Your Digital HQ
Welcome to Success from Anywhere: Your Digital HQ. Join our Slack-First Customer 360 event to find out more. Register now: https://www.salesforce.com/events-master/digital-hq/ Success Anywhere means coming…
Salesforce Data Loader Tutorial
The Salesforce Data Loader is an easy to use graphical tool that helps you to get your data into Salesforce objects. The Data Loader can…
Tableau CRM for Emergency Response Management | Salesforce
When disaster strikes, public and private health organizations, as well as government agencies, need to respond quickly and efficiently. Tableau CRM for Emergency Response Management…