我有一個graphHolderController
呈現此模板:灰燼this.get(「控制器」)返回父控制器
{{#each controller.graphs}}
{{view sidePanelView}}
{{view graph}}
{{/each}}
在SidePanelView
,我想調用一個方法上SidePanelController
,但我發現, SidePanelView
,this.get('controller')
返回graphHolderController
的實例。如何從SidePanelView
調用SidePanelController
的方法?
也許我應該使用'{{control sidePanelView}}'而不是? – 2013-04-24 22:01:55
是的,這也是可能性,但我不想建議現在使用'{{control}}'的未完成的功能。 – Myslik 2013-04-24 22:12:19