Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let someInfo: SomeInfo = new SomeInfo("abc", "xyz");
- this.httpclient.post<MwUser>(apiUrl, someInfo).subscribe(
- res => {
- console.log(res);
- },
- error => {
- console.log(error);
- }
- );
- const paramToPass: any = new HttpParams().set('groupType', 'xyz');
- this.httpclient.post<MwUser>(apiUrl, someInfo, paramToPass).subscribe(
- res => {
- user = res;
- console.log(res);
- },
- error => {
- console.log(error);
- }
- );
Add Comment
Please, Sign In to add comment