When you try adding a binding to an ObjectController it doesn’t work.
App.FailController = Em.ObjectController.extend({
content: null,
myBinding: "App.router.myController" // <-- fails
});
Error:
Uncaught Error: assertion failed: Cannot delegate set('my', ) to the 'content' property of object proxy <.FailController:ember154>: its 'content' is undefined.
It tries adding it to the content property.
jsFiddle: demo
credits: to caligo-mentis who answered this over at github.
ObjectProxydelegates any call tosetto thecontentproperty unless a property with the same name exists on theObjectProxyinstance. The simple solution is to define a property with the desired name prior to declaring the binding.jsFiddle: demo