Get current value from Observable without subscribing (just want value one time)
Quick answer: …I just want the current value one time and not new values as they are coming in… You will still use subscribe, but with pipe(take(1)) so it gives you one single value. eg. myObs$.pipe(take(1)).subscribe(value => alert(value)); Also see: Comparison between first(), take(1) or single() Longer answer: The general rule is you should only … Read more