Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addOrder(): void {
- this._orderService.addOrder(this.order)
- .subscribe((response) => {
- console.log(response)
- this.reset();
- },
- (error) => {
- console.log(error);
- });
- }
- private reset() {
- this.order.id = null;
- this.order.orderDescription = null;
- this.order.extraDetails = null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement