jeudi 22 janvier 2015

Reusable Ember Component across different modules

I have two ember apps in the same website and I want to share common components.


In my app#1 (App1 namespace) I have this template which tries to make use of a drag-element component:



{{#drag-element item=item.id elementName='num' dragType='visits'}}
test
{{/drag-element}}


I have defined the component in a different namespace like this:


Common.DragElementComponent = Ember.Component.extend({...});


How do I reference this component from App1 which is a different namespace than Common?





Aucun commentaire:

Enregistrer un commentaire