Last active
March 9, 2020 15:25
-
-
Save msarsha/e0f1d82ccfbc738c94eb7c0fa3694141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createRequestTwo(data): Observable<any>{ | |
return this.http.post(url, data); | |
} | |
return requestOne | |
.pipe( | |
switchMap( | |
(requestOneResult) => {return createRequestTwo(requestOneResult)} | |
) | |
).subscribe((requestTwoResult) => {...}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment