Ember Component Action Bubbling
This addon allows you to call an action from a nested component
and have it bubble up the hierarchy all the way to the root component, then
on to the current controller, its route, eventually reaching the application
route, simliar to how Controller and Route's send()
works in Ember:
-
Bubbling will continue while actions along the chain keep returning
true
, until reaching the application route. -
If a component along the chain does not implement the action, bubbling will skip to its parent.
The addon is very simple and all it does is reintroduce behaviour that was already present thanks to this lovely little bug.
Installation
ember install ember-component-action-bubbling
Code Example
// parentComponent; // childComponent; // grand childComponent;