I want to check first service call result before proceeding further. If the first call fails, I have some thing to handle
return this.http.get(this.partySiteAddressUrlOrganization + "?" + new Date().toString(), { params: newparams }).pipe(
concatMap((result1: any) => {
if (result1.success)
return this.http.post(this.postRequestListURL, parm)
else {
}
}));
Not fully understand your question, base on my assumption here is what I think
You can simply use the catchError operator from rxjs/operators and write something like this.