EmberJS - Manually bind controller to view
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Lately EmberJS changed a lot (Router, ...) and the code I have started to write less than a month ago is now broken. One of the issue I have right now is I am not able to manually bind the controller to the view. I am using requireJS by the way... So I used to the able to do something like this (here to define the view for my menu and the menu items), to actually get the Controller content and selected properties. define ( 'app/common/views/menu', [ 'text!app/common/templates/menu.hbs', 'ember' ], /** * Menu view * * @param template *