-
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
Document Generation in Salesforce with Nintex DocGen
Nintex is powerful document generation tool comes with how to generate a document for data and also manage them. Salesforce is World No.1 CRM so…
Knowledge of Salesforce Flow and Different Type of Flows and Its Elements
What are Flows? In Salesforce, a flow is an application that automates complex business processes. Simply put, it collects data and then does something with…
What Salesforce Einstein Chatbots Can Do? Use Cases Overview for Every Industry
You may have encountered AI chatbots in your lifetime, for leisure or business. Chatbots are not a new concept. Their current surge in popularity reflects…
Popular Salesforce Videos
Integrating a Node.js Application with Salesforce
Watch this video where we will explore how to integrate a Node.js web application with Salesforce using Heroku Connect and JSForce. You can work with…
Transforming M&A Deal Management with Salesforce | Miles Advisory's Success Story
In this video testimonial, discover how Miles Advisory Pty Ltd., a leading mid-market corporate advisory practice in Australia, revolutionized their M&A deal management and tracking…
Salesforce Developer Training Videos For Beginners | Salesforce Training
This Salesforce Training Video is the video session of a live virtual class conducted by Simplilearn. So if you just go through the video you…