fix template loop references

This commit is contained in:
2026-03-15 13:33:36 +01:00
parent 9bbabb18aa
commit e4f829d0c8
11 changed files with 14 additions and 14 deletions

View File

@@ -14,13 +14,13 @@
</button>
}
<div [class.offset]="fullscreen" [style.top.px]="offset + 50">
@for (section of sections; track section; let i = $index) {
@for (section of sections; track section.type + '-' + section.number + '-' + $index; let i = $index) {
<div
#section
[class.chorus]="section.type === 1"
class="section"
>
@for (line of getLines(section); track line) {
@for (line of getLines(section); track (line.lineNumber ?? $index) + '-' + line.type + '-' + $index) {
<div
[class.chord]="line.type === 0"
[class.comment]="isComment(line.text)"
@@ -64,13 +64,13 @@
@if (header) {
<h1>{{ header }}</h1>
}
@for (section of sections; track section; let i = $index) {
@for (section of sections; track section.type + '-' + section.number + '-' + $index; let i = $index) {
<div
#section
[class.chorus]="section.type === 1"
class="section"
>
@for (line of getLines(section); track line) {
@for (line of getLines(section); track (line.lineNumber ?? $index) + '-' + line.type + '-' + $index) {
<div
[class.chord]="line.type === 0"
[class.disabled]="checkDisabled(i)"