CaffGeek/MBACNationals

View on GitHub
Website/src/app/website/statistics-page/high-by-game/high-by-game.component.html

Summary

Maintainability
Test Coverage
<mat-card color="primary">
    <mat-card-header>
        <mat-card-title>High Scores</mat-card-title>
    </mat-card-header>
    <mat-card-content fxLayout="row wrap">
        <a fxFlex="4" mat-raised-button color="accent" class="game" [class.selected]="!game" (click)="game = undefined">ALL</a>
        <a fxFlex="4" *ngFor="let item of [].constructor(21); let i = index" mat-raised-button color="accent" class="game" [class.selected]="game === i + 1" (click)="game = i + 1">{{ i + 1}}</a>
    </mat-card-content>
</mat-card>

<app-highscores [year]="year" [game]="game" division="Tournament" stat="Scratch"></app-highscores>
<app-highscores [year]="year" [game]="game" division="Teaching" stat="Scratch"></app-highscores>
<app-highscores [year]="year" [game]="game" division="Senior" stat="Scratch"></app-highscores>