Chris
unread,May 15, 2013, 5:13:38 PM5/15/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to transpa...@googlegroups.com
How do I get Transparency to display name/value pairs when you don't know the names in advance?
For example:
items: [
{foo: "foo"},
{foo: "foo", bar: "bar", bah: "bah"}
]
Template:
<div id="container">
<div id="item">
<span class="name"></span> <span class="value"></span>
</div>
</div>
Output:
<div id="container">
<div id="item">
<span id="name">foo</span> <span class="value">foo</span>
</div>
<div id="item">
<span id="name">foo</span> <span class="value">foo</span>
<span id="name">bar</span> <span class="value">bar</span>
<span id="name">bah</span> <span class="value">bah</span>
</div>
</div>
Every item will have a different set of name/value pairs, and I don't know what they will be.
I'm sure there's a directive that will do this, but I can't quite wrap my head around it.