Add new createTransaction method
This commit is contained in:
@@ -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