Ember.Select不工作?

时间:2014-02-14 19:27:31

标签: ember.js

我正在处理来自http://emberjs.com/api/classes/Ember.Select.html的示例代码并且它似乎没有工作?我收到这个错误:

Assertion failed: The value that #each loops over must be an Array. You passed names ember.js:394 Uncaught TypeError: Object names has no method 'addArrayObserver'

这是我的jsbin:http://jsbin.com/kogav/1/

感谢您的帮助

1 个答案:

答案 0 :(得分:1)

将其更改为

{{view Ember.Select contentBinding="names"}}

请参阅http://jsbin.com/gocel/1/

相关问题