From fd7c3b3503f0cbbc689bec67f1aad8f4c8667986 Mon Sep 17 00:00:00 2001 From: Phan Huy Tran Date: Wed, 7 May 2025 14:25:25 +0200 Subject: [PATCH] refactor: loop through result matrix --- .../app/feature/game/slots/slots.component.html | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/frontend/src/app/feature/game/slots/slots.component.html b/frontend/src/app/feature/game/slots/slots.component.html index 2b6298c..d2c7587 100644 --- a/frontend/src/app/feature/game/slots/slots.component.html +++ b/frontend/src/app/feature/game/slots/slots.component.html @@ -17,17 +17,11 @@
-
{{ slotResult().resultMatrix[0][0] }}
-
{{ slotResult().resultMatrix[0][1] }}
-
{{ slotResult().resultMatrix[0][2] }}
- -
{{ slotResult().resultMatrix[1][0] }}
-
{{ slotResult().resultMatrix[1][1] }}
-
{{ slotResult().resultMatrix[1][2] }}
- -
{{ slotResult().resultMatrix[2][0] }}
-
{{ slotResult().resultMatrix[2][1] }}
-
{{ slotResult().resultMatrix[2][2] }}
+ @for (row of slotResult().resultMatrix; track $index) { + @for (cell of row; track $index) { +
{{ cell }}
+ } + }