dimanche 11 janvier 2015

a simple Ember.Select with a default selection

Every example I see, has a complex object for the selection (id, name etc.)


I'm trying to do a really simple thing and still can't.


The Select: {{view Ember.Select content=resultsPerPage selection=perPage}}


The controller (ember-cli):



export default Ember.ArrayController.extend({
perPage: 10,
resultsPerPage: ['10', '20', '50', '100'],
});


All I want now is for the Select to have a default value of 10, can't make it happen...





Aucun commentaire:

Enregistrer un commentaire