Skip to content

Commit

Permalink
solutions now shwo in solutions component
Browse files Browse the repository at this point in the history
  • Loading branch information
valerioprds committed Nov 15, 2023
1 parent 0b668e3 commit 8906c6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/shared/components/solution/solution.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div *ngIf="!isUserSolution" class="non-editable-text">
<!-- solutions from other users go here -->
<!-- {{ "modules.challenge.info.solutionsChallenge" | translate }} -->
<pre *ngFor="let language of languages">{{ language.language_name }}</pre>
<pre *ngFor="let solution of solutions">{{ solution.solution_text }}</pre>

</div>
</div>
4 changes: 2 additions & 2 deletions src/app/shared/components/solution/solution.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ get number() {
}
}

languages: any[] = [];
solutions: any[] = [];

constructor(private solutionService: SolutionService,
private translateService: TranslateService) { }
Expand All @@ -65,7 +65,7 @@ get number() {
}
});
this.solutionService.getSolutions('../assets/dummy/challenge.json').subscribe(data => {
this.languages = data.languages
this.solutions = data.solutions
})
}

Expand Down

0 comments on commit 8906c6d

Please sign in to comment.