Created
December 17, 2018 13:58
-
-
Save rajaramtt/dbe997ee9dca9717602eafa753ca8312 to your computer and use it in GitHub Desktop.
Observable map key example
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
import { Observable, BehaviorSubject, ReplaySubject, pipe } from 'rxjs'; | |
import { of as observableOf } from 'rxjs'; | |
import { tap, map } from 'rxjs/operators'; | |
import { distinctUntilChanged } from 'rxjs/operators'; | |
return this.http.post(`${environment.host}${environment.loginService}`, credentials) | |
.pipe( | |
map(response => { | |
const storage = sessionStorage; | |
return response['userDetails']; | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment