我有一个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