Closed smithcommajoseph closed 10 years ago
got my answer here http://stackoverflow.com/questions/24133529/injecting-dependencies-into-an-ember-model-model-and-use-of-the-model-factory
in short yes, this is not supported by ember-model at this time yes, I was misunderstanding how to use this feature yes, there is still a way to handle dependency injection in ember-model models (outlined in the above SO answer)
I previously asked a similar question on Stack Overflow Injecting dependencies into an Ember model, but I now believe my issue is really around injection of dependencies into an 'ember-model' model.
Even when I have set Ember.MODEL_FACTORY_INJECTIONS = true, I cannot seem to inject deps into my models that are constructed with Ember.Model.
I have created a jsbin http://emberjs.jsbin.com/yizoyozu/4/edit?html,js,console,output which demonstrates injection working for routes, views, and controllers, but not for models.
the code is something akin to:
with the following templates
Is this not supported by ember-model or am I misunderstanding how to use this feature?