1.0.0 • Published 7 years ago
ember-owner-helpers v1.0.0
ember-owner-helpers
An add-on that provides helpers related to the application instance.
Installation
ember install ember-owner-helpers
Usage
{{owner/lookup 'service:foo'}}
For details on how to use the lookup
method, see the document of Ember.ContainerProxyMixin.
A helper to look up the service is also available. It is just for convenience and does not do special things.
{{owner/lookup-service 'foo'}}
Example: Use with ember-toastr
<button onclick={{invoke 'success' 'Hello!' (owner/lookup-service 'toast')}}>
Note: The invoke
helper is provided by ember-composable-helpers.
Contributing
Installation
git clone https://github.com/ember-sapporo/ember-owner-helpers.git
cd ember-owner-helpers
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"yarn test
– Runsember try:each
to test your addon 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.
1.0.0
7 years ago