How to bind a Map Interface with ember.js? -


i ember beginner , have question data binding. have complex data structure receifed rest service. structure based on map interface , looks this:

{"item":[     {"name":"namlasteditor","value":["tom"]},     {"name":"_subject","value":["hello world"]},     {"name":"type","value":["workitem"]} ]} 

my application can not sure elements contained in map structure. can not simple map each element separate property.

now question is, how can bind value of named item element input text in template getter method? looking somthing like:

{{input type="text" value=mydata.item('_subject')}}

but can not figure out how , if possible. can give me hint or example how ember model object should look problem solved?

i made progress ember.handlebars.helper contsturct. usable display value of map. binding not possible ember.handlebars.helper construct.


Comments