@if (!state && hasChildren) { } @if (!state && !hasChildren) { } @if (state) { {{ item?.title }} } @if (hasChildren) { @for (subItem of visibleChildren; track subItem?.title) {
}
}
{{ item?.title }}
@for (subItem of visibleChildren; track subItem?.title) { }