Bind-attr ember js not updating store


#1

I have an input box " input type=“text” {{bind-attr value=val }} " in a component . The input box displays the value from data store (val). How ever whan i edit the value, the data store is not updated on the fly. any idea why?

DEBUG: Ember : 1.8.1 ember-1.8.1.js:15373 DEBUG: Ember Data : 1.0.0-beta.11 ember-1.8.1.js:15373 DEBUG: Handlebars-runtime : 1.1.2 ember-1.8.1.js:15373 DEBUG: jQuery : 1.10.2


#2

Maybe because browser do not change value attribute in HTML while input content is changed. You have to use event for this.

Simply use input helper instead. It will also work in component

{{input type="text" value=val}}