Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 days ago
JSON representation

Pass Ember components from one location to another (engine)

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 above

Installation
------------------------------------------------------------------------------

```
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).