lundi 7 novembre 2016

Looping through Array of Arrays in Ember

I'm bit new and confused about Ember iterations.

I'm trying to construct a select inside ember template, like:

<select id="state_list">
  
    <option value=></option>
  
</select>

Here, stateArrays looks like:

[[1, "Alabama"], [2, "Alaska"], [3, "Arizona"]]

But, this throws error. When I try , I get string like "1, Albama"...

How to achieve the above in single iteration?




Aucun commentaire:

Enregistrer un commentaire