Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Ember
  3. ember-route-action-helper

ember-route-action-helper

MITJavaScript

An Ember.js addon that provides a helper to bubble closure actions up the route hierarchy.

GitHubGitHub
326 stars44 forks0 contributors

What is ember-route-action-helper?

ember-route-action-helper is an Ember.js addon that enables components to invoke actions defined on routes using closure action semantics. It allows actions to bubble through the route hierarchy, providing a way to delegate behavior from components to routes while maintaining return values.

Target Audience

Ember.js developers building applications where components need to trigger actions that are handled at the route level, particularly those using closure actions for functional patterns in templates.

Value Proposition

Developers choose this addon for its structured approach to bridging component and route interactions, offering route action bubbling with closure action support and predictable error handling when actions are not found.

Overview

Bubble closure actions in routes

Use Cases

Best For

  • Enabling components to delegate actions to routes while preserving return values via closure actions.
  • Implementing action bubbling through the active route hierarchy following Ember's bubbling rules.
  • Combining route actions with the standard {{action}} helper for declarative event handling in templates.
  • Overriding route-action behavior in integration tests for components that use this helper.
  • Centralizing action handling at the route layer in Ember applications for better organization.
  • Using closure actions to pass arguments and return values in route-based action invocations from components.

Not Ideal For

  • Teams adopting Ember Octane patterns that favor component-based state management over route actions.
  • Applications where actions are handled within services or controllers, avoiding the complexity of route bubbling.
  • Projects aiming for minimal dependencies and preferring Ember's built-in action handling without additional addons.

Pros & Cons

Pros

Route Action Bubbling

Enables actions to bubble up the active route hierarchy per Ember's rules, allowing centralized handling at the route level, as described in the usage examples.

Closure Action Support

Uses closure actions to pass arguments and return values, facilitating functional patterns in templates, with return values demonstrated in the component code snippet.

Template Integration

Can be combined with the standard {{action}} helper for declarative event handling, as shown in the README with button examples.

Predictable Error Handling

Raises an error if no action is found after bubbling, ensuring fail-fast behavior in development, mentioned in the error handling section.

Cons

Questionable Necessity

The README includes a warning that most use cases can be achieved without this addon, referencing a blog post on Ember best practices, suggesting it may be redundant.

Complex Test Setup

Integration tests require manual overrides of the helper with boilerplate code, as detailed in the testing section, adding development overhead.

Limited Modern Relevance

With Ember's shift towards Octane and tracked properties, route actions are often bypassed in favor of simpler patterns, reducing the addon's utility in new projects.

Frequently Asked Questions

Quick Stats

Stars326
Forks44
Contributors0
Open Issues12
Last commit3 years ago
CreatedSince 2015

Tags

#template-helpers#ember-addon#javascript#frontend-framework#ember-helper

Built With

J
JavaScript
E
Ember.js
B
Bower
n
npm
H
HTMLBars

Included in

Ember202
Auto-fetched 1 day ago

Related Projects

ember-truth-helpersember-truth-helpers

Ember HTMLBars Helpers for {{if}} & {{unless}}: not, and, or, eq & is-array

Stars703
Forks95
Last commit2 months ago
ember-composable-helpersember-composable-helpers

Composable helpers for declarative templating in Ember

Stars629
Forks122
Last commit2 years ago
ember-promise-helpersember-promise-helpers

Promise-y sugar for your Ember templates.

Stars206
Forks24
Last commit2 years ago
ember-awesome-macrosember-awesome-macros

A collection of Ember computed macros

Stars204
Forks36
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub