ember-owner-helpers
v1.0.0
Published
An add-on that provides helpers related to the application instance.
Readme
ember-owner-helpers
An add-on that provides helpers related to the application instance.
Installation
ember install ember-owner-helpersUsage
{{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.gitcd ember-owner-helpersyarn install
Linting
yarn lint:jsyarn 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:eachto 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.
