Guest User

Untitled

a guest
Aug 16th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. let someInfo: SomeInfo = new SomeInfo("abc", "xyz");
  2.  
  3. this.httpclient.post<MwUser>(apiUrl, someInfo).subscribe(
  4. res => {
  5. console.log(res);
  6. },
  7. error => {
  8. console.log(error);
  9. }
  10. );
  11.  
  12. const paramToPass: any = new HttpParams().set('groupType', 'xyz');
  13. this.httpclient.post<MwUser>(apiUrl, someInfo, paramToPass).subscribe(
  14. res => {
  15. user = res;
  16. console.log(res);
  17. },
  18. error => {
  19. console.log(error);
  20. }
  21. );
Add Comment
Please, Sign In to add comment