-
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
8 Salesforce Service Cloud Enhancements to Deliver Exceptional Customer Experience
A customized Salesforce Service Cloud can go a long way in helping you deliver exceptional customer experiences. But what is it is that you can…
What Are Events In Salesforce Lightning Component
Event Introduction Lightning framework uses event-driven programming Events handle communication between two components. Events are fired from the Javascript controller by using fire() predefined method.…
Salesforce Code Builder is Officially Released
Salesforce Code Builder has been officially released and is now generally available, offering a new web-based integrated development environment (IDE) that seamlessly incorporates open, modern,…
Popular Salesforce Videos
How Cyntexa Helped An Educational Firm | Salesforce Training
Here is a testimony of how Cyntexa helped an educational firm build a single place to keep all data. Swipe to know what the challenges…
What is Salesforce? Career Opportunities and Job Roles in Salesforce!
This video deals with the most important aspect of Salesforce. You'll learn the following things from this video:- 1. What is Salesforce? 2. What business…
How to Edit or Change Product Schedules in Salesforce
Use product schedules to determine the payment and delivery cycles for products that are paid or delivered over time. In Lightning Experience, customize schedules with…