11 Jan

Understanding Lightning Component Events

Susanna Oliver
Posted in: HTML, JavaScript, Lightning, Salesforce, Web Development

Lightning components are designed to be self-contained and independent. While this is great for modular development and encapsulation, it comes at a price. That price is JavaScript. JavaScript from one component can’t talk with another, and that’s why Lightning components use events. Events handle any interaction that needs to take place between components: button clicks, modals, etc.