Created
May 1, 2019 17:53
-
-
Save rakia/e8a4375597aed5fc2b4d458664f45d19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8"> | |
<!-- Position Column --> | |
<ng-container matColumnDef="position"> | |
<th mat-header-cell *matHeaderCellDef> No. </th> | |
<td mat-cell *matCellDef="let element"> {{element.position}} </td> | |
</ng-container> | |
<!-- Name Column --> | |
<ng-container matColumnDef="name"> | |
<th mat-header-cell *matHeaderCellDef> Name </th> | |
<td mat-cell *matCellDef="let element"> {{element.name}} </td> | |
</ng-container> | |
<!-- Weight Column --> | |
<ng-container matColumnDef="weight"> | |
<th mat-header-cell *matHeaderCellDef> Weight </th> | |
<td mat-cell *matCellDef="let element"> {{element.weight}} </td> | |
</ng-container> | |
<!-- Symbol Column --> | |
<ng-container matColumnDef="symbol"> | |
<th mat-header-cell *matHeaderCellDef> Symbol </th> | |
<td mat-cell *matCellDef="let element"> {{element.symbol}} </td> | |
</ng-container> | |
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | |
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment