Here's the problem in jsbin: http://emberjs.jsbin.com/bahuvusa/29/edit
When I have a select such as this:
{{view Ember.Select
contentBinding="items"
optionValuePath="content.value"
optionLabelPath="content.caption"
value=value
}}
Where items is set in the route as an PromiseArray and the data looks like this:
[
{value: 1, caption: "one"},
{value: 2, caption: "two"},
{value: 3, caption: "three"}
]
And I have the value set in a controller:
value: function() {
return 2;
}.property()
When the template renders I would like to see the second element selected, but instead the value is set to undefined (see the jsbin).
Is there a way to make this work? (without making the elements an ember-data model and using selectionBinding)
Update
I ended up using the afterModel hook and returning the promise from it: http://emberjs.jsbin.com/bahuvusa/40/edit