mercredi 15 avril 2015

Ember select view not understanding an Array

I'm copying this code for a select



{{view "select" content=names}}


export default Ember.ObjectController.extend({
selectedName: 'Tom',
names: ["Yehuda", "Tom"]
});


but I get this error:



Uncaught Error: Assertion Failed: The value that #each loops over must be an Array. You passed [Yehuda,Tom]


copied from here: http://ift.tt/1kHLFnV





Aucun commentaire:

Enregistrer un commentaire