JSON array in the steering wheel

I have a json object like

[ "id", "birthday", "companymsgsthisperiod", "companythisperiodend", "cust_attr_boolean", "subscribed", "testgroup", "usermsgsthisperiod", "userthisperiodend" ]

now i would like to add this type of json object using handlebar to file as

<div>/*json*/</div>

Can someone help me get through this?

+5
source share
2 answers

You have an array. I think from the documentation that you can use each helper block

<div>
  {{#each dataArray}}
  <div>{{this}}</div>
  {{/each}}
</div>
+7
source

Finally, it can satisfy your needs.

tryhandlebarsjs.com - screenshot

0
source

All Articles