Can components be interactive with another components in EmberJs?


#1

Let’s say, if there are 3 components in a page, is there a mechanism which enable these 3 components to pass data to each ohter? And how can I define the model data in this page? For example, assume there is a floor list, stores list and the floor map in the page. I want to make these 3 parts as 3 components in Ember. Once you click different floor in the floor list component, the stores list and the floor map will be changed according to the selected floor. How could these components interact with each other? Thanks.


#3

The components should interact with each other through their parent controller. Here’s an example on jsbin:


#4

Thank you, I’ll have a try :slight_smile: