npm.io
1.1.0 • Published 7 years ago

ember-helper-helper

Licence
MIT
Version
1.1.0
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
3

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.

Keywords