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