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.
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
- DockYard/ember-composable-helpers (
pipe-action
) - ember-sapporo/ember-store-helpers (
store/find-record
)
Contributing
Installation
git clone https://github.com/ember-sapporo/ember-helper-helper.git
cd ember-helper-helper
yarn install
Linting
yarn lint:js
yarn lint:js --fix
Running tests
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versions
Running the dummy application
ember serve
- Visit the dummy application at http://localhost:4200.
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.