Skip to content

This add-on provides a "helper" helper that looks up the helper by name and returns a function with partial application.

License

Notifications You must be signed in to change notification settings

ember-sapporo/ember-helper-helper

Repository files navigation

ember-helper-helper

This add-on provides a helper helper that looks up the helper by name and returns a function with partial application (commonly called "currying"). It is useful when you want to use a helper as an action.

Compatibility

  • Ember.js v3.4 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install ember-helper-helper

Usage

<button value='42' onclick={{pipe-action (action (helper 'store/find-record' 'user') value='target.value') (action (mut user))}}>
  Find and set user 42
</button>

See Also

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

About

This add-on provides a "helper" helper that looks up the helper by name and returns a function with partial application.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published