@if (groups.length === 0 || direction === 'horizontal') {
@for (step of steps; track step; let i = $index; let isLast = $last; let isFirst = $first) {
i"
[disabled]="_stepDisabled(i)"
[direction]="direction"
[ariaControls]="_getStepContentId(i)"
[wasCompleted]="step.wasCompleted"
>
}
} @else {
@for (group of groups; track group; let i = $index) {
{{ group.label }}
@for (step of group.steps; track step; let isLast = $last) {
_getIndex(step)"
[disabled]="_stepDisabled(_getIndex(step))"
[direction]="direction"
[wasCompleted]="step.wasCompleted"
[ariaControls]="_getStepContentId(i)"
>
}
}
}
@if (direction === 'horizontal') {