@for (item of item.children; track item) { @if (item.type === 'group') { } @if (item.type === 'collapse') { } @if (item.type === 'item') { } }