https://github.com/knownasilya/ember-zipline
Pass Ember components from one location to another (engine)
https://github.com/knownasilya/ember-zipline
ember-addon ember-engines emberjs
Last synced: 5 months ago
JSON representation
Pass Ember components from one location to another (engine)
- Host: GitHub
- URL: https://github.com/knownasilya/ember-zipline
- Owner: knownasilya
- License: mit
- Created: 2017-06-09T20:02:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-13T22:25:00.000Z (over 6 years ago)
- Last Synced: 2025-01-03T14:07:45.388Z (5 months ago)
- Topics: ember-addon, ember-engines, emberjs
- Language: JavaScript
- Homepage:
- Size: 132 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-zipline
==============================================================================Send components from one location to another declaratively. Use case is for
sharing components with an ember engine isntance.Compatibility
------------------------------------------------------------------------------* Ember.js v2.18 or above
* Ember CLI v2.13 or aboveInstallation
------------------------------------------------------------------------------```
ember install ember-zipline
```Usage
------------------------------------------------------------------------------Define what data/components we want to send.
```hbs
```
Inject the zipline service.
```js
import Component from '@ember/component';
import { inject as service } from '@ember/service';export default Component.extend({
ziplineService: service('zipline')
});
```Access the sent data/components via the service.
```hbs
{{#let this.ziplineService.data.UserProfile as |UserProfile|}}
{{/let}}
```Contributing
------------------------------------------------------------------------------See the [Contributing](CONTRIBUTING.md) guide.
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).