Matthew Kime
Matthew Kime

Reputation: 754

Emberjs - Ember.Select valueBinding fails to work

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

Answers (2)

Matthew Kime
Matthew Kime

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

sabithpocker
sabithpocker

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

Related Questions