Add API calls for profile component

This commit is contained in:
kevinpauer
2022-04-05 19:23:52 +02:00
parent 16ad83ae40
commit 4c7506d8b2
8 changed files with 113 additions and 63 deletions

View File

@@ -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
});
}