We have some array of objects:
data = [
{
'showname-array': [
{'a':..}
{'b':..}
{'c':..}
]
},
{
'andanotherName-array': [
{'a':..}
{'b':..}
{'c':..}
]
},
]
Is it possible to render with mustache or underscore.js-templates the name of object’s property:
‘showname-array’
‘andanotherName-array’
<div> Hello , showing content of: <% showname-array %> </div>
How is it possible?
You can use Underscore
_.keys()function