From 8906c6d482aa9dd32bc3c0a96cd1e98ee283952c Mon Sep 17 00:00:00 2001 From: valerioprds Date: Wed, 15 Nov 2023 11:07:19 +0100 Subject: [PATCH] solutions now shwo in solutions component --- src/app/shared/components/solution/solution.component.html | 2 +- src/app/shared/components/solution/solution.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/shared/components/solution/solution.component.html b/src/app/shared/components/solution/solution.component.html index 3649d2e0..4ff7e8c1 100644 --- a/src/app/shared/components/solution/solution.component.html +++ b/src/app/shared/components/solution/solution.component.html @@ -15,7 +15,7 @@
-
{{ language.language_name }}
+
{{ solution.solution_text }}
diff --git a/src/app/shared/components/solution/solution.component.ts b/src/app/shared/components/solution/solution.component.ts index b6e09773..b04b164a 100644 --- a/src/app/shared/components/solution/solution.component.ts +++ b/src/app/shared/components/solution/solution.component.ts @@ -46,7 +46,7 @@ get number() { } } - languages: any[] = []; + solutions: any[] = []; constructor(private solutionService: SolutionService, private translateService: TranslateService) { } @@ -65,7 +65,7 @@ get number() { } }); this.solutionService.getSolutions('../assets/dummy/challenge.json').subscribe(data => { - this.languages = data.languages + this.solutions = data.solutions }) }