You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
967 B
24 lines
967 B
|
2 years ago
|
<div>
|
||
|
|
<table mat-table [dataSource]="sortedStandings" class="mat-elevation-z8">
|
||
|
|
<ng-container matColumnDef="position">
|
||
|
|
<th mat-header-cell *matHeaderCellDef></th>
|
||
|
|
<td mat-cell *matCellDef="let element; let i = index">{{i + 1}}</td>
|
||
|
|
</ng-container>
|
||
|
|
|
||
|
|
<!-- Name Column -->
|
||
|
|
<ng-container matColumnDef="name">
|
||
|
|
<th mat-header-cell *matHeaderCellDef>Name </th>
|
||
|
|
<td mat-cell *matCellDef="let element"> {{getRacerName(element.id)}} </td>
|
||
|
|
</ng-container>
|
||
|
|
|
||
|
|
<!-- Weight Column -->
|
||
|
|
<ng-container matColumnDef="points">
|
||
|
|
<th mat-header-cell *matHeaderCellDef>Points </th>
|
||
|
|
<td mat-cell *matCellDef="let element"> {{element.points}} </td>
|
||
|
|
</ng-container>
|
||
|
|
|
||
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||
|
|
</table>
|
||
|
|
</div>
|