mongodb - how to display multi-dimensional data from collection in meteor -
how show multidimensional data collection. have this
links.insert({ cat:[{ name:'js', sub:[{ name:'angularjs', links:[{ url:'something.com'},{url:'another.com'}] },{ name:'meteorjs', links:[{ url:'something.com'},{url:'another.com'}] }] }] });
retrieving data in helper this
'links':function(){ return links.find(); // tried links.find().fetch()
one option use separate helpers specific data. want use single helper receive whole data , show like
{{#each links}} {{cat.name}} : {{sub.name}} : {{links.url}} {{/each}}
have tried:
{{#each link}} {{cat.[0].name}} : {{cat.[0].sub.[0].name}} : {{cat.[0].sub.[0].links.[0].url}} {{/each}}
Comments
Post a Comment