@if (isInitialized) { @if (productionMeters?.length > 0 && chargerComponents?.length > 0) { } @if (productionMeters?.length === 1) { @for (meter of productionMeters; track meter; let i = $index) { } } @if (productionMeters.length > 1) { @for (phase of ['L1','L2','L3']; track phase) { } @for (meter of productionMeters; track meter; let i = $index) { } @if (chargerComponents.length > 0) { } } @if (chargerComponents.length > 1) { } @for (component of chargerComponents; track component; let i = $index) { } }