From 0e2ba6b138f707e33c0e8e1e7369f6b25a012016 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 27 Sep 2025 16:30:55 +0200 Subject: [PATCH] refactor: convert *ngFor to control-flow @for loops in channel list --- .../channel-list-container.component.html | 65 ++++++++++--------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/src/app/player/components/channel-list-container/channel-list-container.component.html b/src/app/player/components/channel-list-container/channel-list-container.component.html index 95f34c71b..1c0a2e4bc 100644 --- a/src/app/player/components/channel-list-container/channel-list-container.component.html +++ b/src/app/player/components/channel-list-container/channel-list-container.component.html @@ -57,7 +57,10 @@ - @for (groups of groupedChannels | keyvalue: groupsComparator; track $index) { + @for ( + groups of groupedChannels | keyvalue: groupsComparator; + track $index + ) { @if (groups.value.length > 0) { @@ -70,13 +73,11 @@ - + @for ( + channel of groups.value; + track trackByFn($index, channel); + let i = $index + ) { - + } } @@ -118,28 +119,30 @@ id="favorites-list" > @if (favorites.length > 0) { - + @for ( + channel of favorites; + track trackByFn($index, channel); + let i = $index + ) { + + } } @else { {{