Add new createTransaction method
This commit is contained in:
@@ -45,8 +45,8 @@ const ELEMENT_DATA: PeriodicElement[] = [
|
||||
|
||||
export interface TransactionData {
|
||||
symbol: string;
|
||||
time: Date;
|
||||
count: number;
|
||||
time: string;
|
||||
count: BigInt;
|
||||
price: number;
|
||||
}
|
||||
|
||||
|
@@ -25,11 +25,17 @@ export class UserDialogComponent implements OnInit {
|
||||
|
||||
onSubmit() {
|
||||
console.log(this.data);
|
||||
this.dataService.createTransaction(
|
||||
this.data.symbol,
|
||||
this.data.time,
|
||||
this.data.count,
|
||||
this.data.price
|
||||
console.log(
|
||||
this.dataService
|
||||
.createTransaction(
|
||||
this.data.symbol,
|
||||
this.data.time,
|
||||
this.data.count,
|
||||
this.data.price
|
||||
)
|
||||
.subscribe((data) => {
|
||||
console.log(data);
|
||||
})
|
||||
);
|
||||
this.dialog.closeAll();
|
||||
}
|
||||
|
Reference in New Issue
Block a user