I\'m attempting to inject dependencies into my Ember models.
https://github.com/emberjs/ember.js/issues/3670, states that this is disabled. Following a link to https://g
Model injections does indeed work:
Ember.MODEL_FACTORY_INJECTIONS = true;
App = Ember.Application.create();
App.initializer({
name: 'model-injection',
initialize: function(container, application) {
var cfg = {version: '1'};
container.register('app:config', cfg, {instantiate: false});
container.injection('model', 'cfg', 'app:config');
App.advanceReadiness();
}
});
App.deferReadiness();
http://emberjs.jsbin.com/lomiy/1/edit