Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. createProcessingDataFamily(body: any) {
  2.     this.slimLoadingBarSvc.start();
  3.     this.onSubmitRequest = true;
  4.     this.personalSvc.createDataFamily(body).subscribe(
  5.       (response) => {
  6.         this.slimLoadingBarSvc.complete();
  7.         this.onSubmitRequest = false;
  8.         if (response) {
  9.           this.coreSvc.growl(
  10.               NOTIFICATION_TYPE.SUCCESS,
  11.               response.info,
  12.               () => { this.location.back(); },
  13.               2000
  14.           );
  15.         }
  16.       },
  17.       (err: HttpErrorResponse) => {
  18.         this.slimLoadingBarSvc.complete();
  19.         this.onSubmitRequest = false;
  20.       }
  21.     );
  22.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement