Fix wrong dataSource
This commit is contained in:
@@ -7,28 +7,36 @@
|
||||
</div>
|
||||
<mat-card class="placeholder">
|
||||
<div class="stockTable">
|
||||
<table mat-table [dataSource]="dataSourceTransactions">
|
||||
<table mat-table [dataSource]="dataSourceStocks">
|
||||
<!--- Note that these columns can be defined in any order.
|
||||
The actual rendered columns are set as a property on the row definition" -->
|
||||
|
||||
<!-- Position Column -->
|
||||
<!-- Symbol Column -->
|
||||
<ng-container matColumnDef="position">
|
||||
<th mat-header-cell *matHeaderCellDef>Symbol</th>
|
||||
<td mat-cell *matCellDef="let element">{{ element.symbol }}</td>
|
||||
</ng-container>
|
||||
|
||||
<!-- Name Column -->
|
||||
<!-- Count Column -->
|
||||
<ng-container matColumnDef="name">
|
||||
<th mat-header-cell *matHeaderCellDef>Count</th>
|
||||
<td mat-cell *matCellDef="let element">{{ element.count }}</td>
|
||||
</ng-container>
|
||||
|
||||
<!-- Weight Column -->
|
||||
<!-- Time Column -->
|
||||
<ng-container matColumnDef="weight">
|
||||
<th mat-header-cell *matHeaderCellDef>Time</th>
|
||||
<td mat-cell *matCellDef="let element">{{ element.time }}</td>
|
||||
</ng-container>
|
||||
|
||||
<!-- Time Column -->
|
||||
<ng-container matColumnDef="current-price">
|
||||
<th mat-header-cell *matHeaderCellDef>Current Price</th>
|
||||
<td mat-cell *matCellDef="let element">
|
||||
{{ element.currentPrice }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumnsStocks"></tr>
|
||||
<tr
|
||||
mat-row
|
||||
|
Reference in New Issue
Block a user