Sunday, 15 September 2013

Ember.js trouble with select and radiobutton bindings example -



Ember.js trouble with select and radiobutton bindings example -

i'm new ember , have big troubles basics. can reply on 2 questions:

there 2 users, next name of each there link "edit" opens edit form. in form there text inputs , select names of cities. if take edit item in entire form substituted info , shows current city in select. when click on editing of item select remains previous city( think bindings. jsbin http://jsbin.com/bidoma/8/

how did add/edit form radio buttons? have working jsbin examples?

waiting reply :)

upd: comment first question. question how update selection when edited object has been changed?

this easy. object instead of promise needed write content in end of selection value. should be

selection=model.city.content

instead

selection=model.city

ember.js ember-data

No comments:

Post a Comment