-
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
AppExchange vs Custom Development: Considering Your Options in Salesforce
Salesforce AppExchange is a marketplace of pre-built applications and components that you can install into your Salesforce organization. Custom development is the process of building…
Salesforce with DocuSign
Introduction In this era of information where everything is online so why should we wait for paper-based signing of a document when it can be…
Setting SSO Between Salesforce and Okta’s Salesforce.com Standard Application using SAML 2.0 protocol
SSO(Single Sign On between Okta(Salesforce.com application) as Identity Provider and Salesforce as Service Provider) Steps to setup SSO between Salesforce and Okta’s Salesforce.com Application:- Go…
Popular Salesforce Videos
Use Aura Component in Screen Flow | Salesforce Flow Builder Tutorial
Hello Trailblazers, In this video, we will learn how to use Aura Component in Salesforce Screen Flow. How to validate the Lightning Component Input from…
Data Archiving in Salesforce | Backup and Restore
Learn the techniques, patterns and strategies when it comes to handling data archiving, backup and restores. Watch this video and learn all about it, do…
Salesforce Nonprofit Cloud Explained
Discover how Salesforce Nonprofit Cloud helps organizations drive social change through better donor management, volunteer coordination, and streamlined operations. In this video, we'll explore the…