How to get value from the observable without subscribe in Angular
Recently I was Observable to get the data and was thinking what are the best approaches to follow to get the data using this? I have came across simple solution from this.
data$ = this.getData.currentDara$;this.data$.pipe(tap((val) =>
this.value = val;
));