mercredi 1 février 2017

How to inject a mixin from inside a component?

Is it possible to inject a mixin from inside a component in ember ?

import mixinCreator from 'ember-mixin-....';

export default Ember.Component.extend({

  didReceiveAttrs() {

    var aMixin = mixinCreator(...)

    this.reopen(aMixin );

  }

});




Aucun commentaire:

Enregistrer un commentaire