0
是否有可能從組件內部注入一個mixin?如何從組件內部注入mixin?
import mixinCreator from 'ember-mixin-....';
export default Ember.Component.extend({
didReceiveAttrs() {
var aMixin = mixinCreator(...);
this.reopen(aMixin);
}
});
請參閱本http://emberjs.com/api/classes/Ember.Mixin.html – kumkanillam