jeudi 4 juin 2015

Ember: Merge Multiple Column of Arrays to rows

I have to populate a grid in which each column's data comes as a array under the object as mentioned below where A and B are column names and data structure as follows

{
    A:[1,2,3],
    B:[4,5,6]
}

So to render this as a table in template it will be easier if the columns are mergered into following structure

[
    [1,4],
    [2,5],
    [3,6]
]

Or it will be helpful if some one suggest some other better solution for this problem




Aucun commentaire:

Enregistrer un commentaire