diff --git a/src/app/answer-statistics/answer-statistics.component.html b/src/app/answer-statistics/answer-statistics.component.html index 829a5b5c4f36f9a2a134a30631b81a4b0771ae3c..a7475655358a1370eb50eb51ea85df171583a567 100644 --- a/src/app/answer-statistics/answer-statistics.component.html +++ b/src/app/answer-statistics/answer-statistics.component.html @@ -25,9 +25,9 @@ <div align="right"> Selected: {{ choice.answers }} times</div> </div> <div fxLayoutAlign="center" fxLayoutGap="10px"> - <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index-1)">Before</button> + <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index - 1)">Before</button> <div><b>{{ selectedContent.index }} / {{ selectedContent.length }}</b></div> - <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index+1)">Next</button> + <button mat-raised-button color="primary" (click)="showEvaluation(selectedContent.index + 1)">Next</button> </div> </mat-tab> </mat-tab-group> diff --git a/src/app/answer-statistics/answer-statistics.component.ts b/src/app/answer-statistics/answer-statistics.component.ts index c622b839eee39864c62a940693547739d34fc7ef..686f82be5f7873b19789a0e047b72efcee6dbd64 100644 --- a/src/app/answer-statistics/answer-statistics.component.ts +++ b/src/app/answer-statistics/answer-statistics.component.ts @@ -62,7 +62,7 @@ export class AnswerStatisticsComponent implements OnInit { } } - showStatistic(value) { /** refactor answer class structure for less code and more abstraction*/ + showStatistic(value) { // refactor answer class structure for less code and more abstraction this.statistics = []; for (const question of this.content) { if (value === '1') { @@ -93,6 +93,6 @@ export class AnswerStatisticsComponent implements OnInit { } showEvaluation(index: number) { - /** coming with api connection, logic doesnt make sense without knowledge about api **/ + // coming with api connection, logic doesnt make sense without knowledge about api } }