Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.     addOrder(): void {
  3.         this._orderService.addOrder(this.order)
  4.             .subscribe((response) => {
  5.                 console.log(response)
  6.                 this.reset();
  7.             },
  8.             (error) => {
  9.                 console.log(error);
  10.             });
  11.     }
  12.  
  13.     private reset() {
  14.         this.order.id = null;
  15.         this.order.orderDescription = null;
  16.         this.order.extraDetails = null;
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement