The ember template displays information:
{{#each model.item1 as |item1|}} {{item1.title}} {{#each item1.item2 as |item2|}} {{item2.title}} {{#each item2.item3 as |item3|}} {{item3.title}} {{/each}} {{/each}} {{/each}} How to make it so that if item3.title zero, then item2.title not displayed. And if item2.title zero, then item1.title should not be output. Those. if there are no children, then do not display the parent. I would understand the algorithm.
{each x as xx} IF NOT xx IS EMPTY {xx.title} {each xx as xxx} IF NOT xxx IS EMPTY {xxx.title} ... {/each}. And if there are IF, how to check for the absence of daughters and how it is spelled correctly - understand yourself ... - Akina