I have a section with a heading that I want to show only if the array is full, something like this:
<h1> These are the elements in the array </h1>
<ul>
{{#myArray}}
<li>{{name}} - {{value}}</li>
{{/myArray}}
</ul>
How can I <h1>only display if it is populated myArray?
If I put it in section #, it is rendered once for each element of the array, which I don't want.
What is the right way to do this?
source
share