@for (item of listItem.children; track item) { {{ item.label }} @if (item.children?.length > 0) { } }