ember-owner-helpers

1.0.0 • Public • Published

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 version
  • ember test --server – Runs the test suite in "watch mode"
  • yarn test – Runs ember try:each to test your addon against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i ember-owner-helpers

Weekly Downloads

14

Version

1.0.0

License

MIT

Unpacked Size

5.42 kB

Total Files

18

Last publish

Collaborators

  • ursm