From 1f8491c1d290af39f7a5795478515d9688b5aa3e Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Wed, 28 Feb 2024 18:21:16 +0800 Subject: [PATCH] Migrate to new control flow syntax (#1827) Co-authored-by: Marco Santarelli --- .../app/line-chart/line-chart.component.html | 21 +++++++++++-------- .../app/line-chart/line-chart.component.ts | 4 ++-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/apps/ng2-charts-demo/src/app/line-chart/line-chart.component.html b/apps/ng2-charts-demo/src/app/line-chart/line-chart.component.html index 3b180d46..5366d726 100644 --- a/apps/ng2-charts-demo/src/app/line-chart/line-chart.component.html +++ b/apps/ng2-charts-demo/src/app/line-chart/line-chart.component.html @@ -9,16 +9,19 @@ > - - - - + @for (label of lineChartData.labels; track label) { + + } + @for (d of lineChartData.datasets; track d; let i = $index) { + + @for (label of lineChartData.labels; track label; let j = $index) { + + } + + }
{{ label }}
- {{ d && d.data[j] }} - {{ label }}
+ {{ d && d.data[j] }} +