当您尝试向 an 添加绑定时,ObjectController
它不起作用。
App.FailController = Em.ObjectController.extend({
content: null,
myBinding: "App.router.myController" // <-- fails
});
错误:
Uncaught Error: assertion failed: Cannot delegate set('my', ) to the 'content' property of object proxy <.FailController:ember154>: its 'content' is undefined.
它尝试将其添加到content
属性中。
jsFiddle:演示