ember-zipline

0.0.0 • Public • Published

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.

<EmberZipline
  @data={{hash
    UserProfile=(component 'user-profile' user=this.user)
  }}
/>

Inject the zipline service.

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.

{{#let this.ziplineService.data.UserProfile as |UserProfile|}}
  <UserProfile/>
{{/let}}

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i ember-zipline

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

5.2 kB

Total Files

11

Last publish

Collaborators

  • knownasilya