-
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
The ultimate guide to building up Opportunity Management in Salesforce
Once you’ve learned how to customize your Salesforce opportunity stages, you can consider enhancing opportunity management in Salesforce to improve visibility for sales managers and…
Salesforce Predictions 2020: What does the Future Hold for Salesforce?
Salesforce, the market leader in CRM, has created a storm in the world of sales and marketing of products and services catering to a diverse…
OAuth 2.0 Device Authorization Flow in Salesforce
For input-restricted devices that connect to the Internet, instead of authenticating the user directly, the device prompts the user to go to a link on…
Popular Salesforce Videos
Spring'21 Prior Value in Salesforce Record Triggered Flows - ISCHANGED IN Salesforce Flows
In this video, I'm talking about the Prior value feature in the Spring'21 pre-release that is for the record triggered flow. Pre-Release Org URL: https://www.salesforce.com/form/signup/prerelease-spring21/…
What is Salesforce Labs?
Free. Open Source. Solutions by Salesforce Employees. From bots to dashboard packs and beyond, Salesforce Labs has something to fit all your business needs. Watch…
What is Salesforce | Salesforce Training Videos For Beginners | Salesforce Tutorial
This Salesforce Training Video will help you an introduction to Salesforce Administrator and Platform App Builder Certification Training course offered by Simplilearn. By end of…