963 Views
Ember closure actions have return vaEmber 1.13 introduced closure actions, a significant change in how components communicate with their context. This new approach makes it much easier to work with nested components, as it's now possible to directly link a target and a grandchild component together. But there's another new feature of closure actions that I haven't seen much written about, which is just as useful. Closure actions have return values. This opens up a new kind of interaction between components, which makes it easier to divide responsibilities cleanly and logically. For me, this means reducing the number of two-way bindings, and simplifying my code.lues