handlebars.js - HandlebarsJS - {{#each}} statement with 2 strings -


is possible this?

{{#each not categorized}}     <p>blablab</p> {{/each}} 

or have

{{#each not_categorized}}     <p>blablab</p> {{/each}} 

because when use first option, nothing gets displayed!?

my json returns:

{   "not categorized": [     { .... }   ],    "live": [     {....}   ],    "others": [     {....}   ] } 

it works when do:

{{#each live}}   .... {{/each} 

what issue here?

thanks in advance...

access using brackets []

{{#each [not categorized]}}     <p>blablab</p> {{/each}} 

you can use in combinations dot notation if need access sub objects.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -