How to access dynamic key in template
-
{{#each layer}} <tr> <td>{{layer_start}}</td> <td>{{layer_end}}</td> {{#each ../../layer_fields}} <td>layer[key]</th> {{/each}} </tr> {{/each}}
Here i want to print layer property with dynamic key name
-
Please check this thread, hope it helps
https://stackoverflow.com/questions/29929323/handlebars-dynamic-property-lookup-in-each-loop
-
Thanks !