Reputation: 754
I have a simple Ember.Select and I'd like to use the valueBinding option.
Changing The select value should changed the displayed value above. It does not.
http://jsfiddle.net/mattkime/rDpEG/
Upvotes: 0
Views: 897
Reputation: 754
looks like i'm inquiring about a yet to be released feature. The current release is 0.9.8.1 and valueBinding is in trunk
Upvotes: 1
Reputation: 15566
I guess you mean selectionBinding
and it binds the object so use {{App.power.label}}
<script type="text/x-handlebars">
App Power : {{#if App.power}}{{App.power.label}}{{else}}Not yet set{{/if}}
<hr/>
{{view Ember.Select
contentBinding="App.booleanOptions"
selectionBinding="App.power"
optionLabelPath="content.label"
optionValuePath="content.value"
id="emberEnhanced"
}}
</script>
Upvotes: 2