4
我已經不工作了以下初始化:燼初始化沒有注入到店組件
Ember.onLoad 'Ember.Application', (Application) ->
Ember.Application.initializer
name: 'storeToComponent'
initialize: (container, application) ->
application.inject('component', 'store', 'store:main')
該組件沒有商店屬性。我已經嘗試過很多東西,例如:
before: 'registerComponents'
但是沒什麼效果。
我在做什麼錯?
對於Ember/Ember Data的更新版本,您應該在初始化程序中指定'after:'store'',並移除'application.register('store:main',App.Store)'行。 – locks