Add API calls for profile component
This commit is contained in:
@@ -53,14 +53,12 @@ export class DashboardComponent implements OnInit {
|
||||
for (let i = 0; i < data.data.length; i++) {
|
||||
STOCK_DATA.push({
|
||||
count: data.data[i].count,
|
||||
// price: data.data[i].price,
|
||||
symbol: data.data[i].symbol,
|
||||
time: data.data[i].last_transaction,
|
||||
});
|
||||
}
|
||||
console.log(STOCK_DATA);
|
||||
this.dataSourceStocks = STOCK_DATA;
|
||||
//TODO map data on array for display
|
||||
//TODO move to helper service
|
||||
});
|
||||
this.dataService.getTransactionData().subscribe((response: any) => {
|
||||
@@ -76,7 +74,6 @@ export class DashboardComponent implements OnInit {
|
||||
}
|
||||
console.log(TRANSACTION_DATA);
|
||||
this.dataSourceTransactions = TRANSACTION_DATA;
|
||||
//TODO map data on array for display
|
||||
//TODO move to helper service
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user