Salesforce Developers Blog: Lightning Inter-Component Communication Patterns

Passing Data Between Components Up, Down and Across the Component Tree

As developers move from Visualforce and other MVC frameworks to Lightning Component development, one of the most difficult conceptual leaps that has to be made is unlearning the synchronous architecture of directly calling server-side controller actions from hard-wired UI components such as buttons or links, to a more decoupled and event-driven architecture.

Philippe Ozil lays out the different options for communicating between parent and child components up and down the component hierarchy, as well as across the entire component tree using a publish-subscribe pattern.

In this article you will learn about passing data values down the component hierarchy using both component attributes and public methods, passing data up or down the component hierarchy using component events, and passing data across the entire component tree using application events.