jeudi 7 mai 2015

Error message about #each looping over a non array when it is already an array

I have updated to ember-cli@0.2.3 and am getting the following error message when running ember serve on an addon project of mine to start the dummy app.

Uncaught Error: Assertion Failed: The value that #each loops over must be     an Array. You passed [search,create,read,update,delete]

controller has:

operations : ['search', 'create', 'read', 'update', 'delete'],

template.hbs has:

{{view "select" content=operations value=selectedOperation class="form-control"}}

The other thing I have noticed is that it appears EXTEND_PROTOTYPES is turned off by default or something because I have to change my .property() values to 'Ember.computed` instead.




Aucun commentaire:

Enregistrer un commentaire