Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4836

Best solution for inter-component communication?

$
0
0

@rohmann wrote:

So I've looked around at some previous conversations, but can't seem to find a definitive answer. If controllers are eventually going away, and actions don't bubble up through components, how should my components talk to each other?

In Backbone world, I would just use pub/sub, but it's my understanding this isn't the best convention here.

For example, say I have a common toolbar component which is populated with different buttons depending on the route. What's the proper way to inform other components when the user clicks a toolbar item?

EDIT: Another example: Hovering over an item updates a fixed status bar with description text. I imagine an event system for something like this is the best way to go, but just want to make sure I'm not outright missing any glaring conventions to follow doing things the Ember way.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles