I have a simple scenario, but just can\'t get it working!
In my view I display some text in a box with limited height.
The text is being fetched from the server,
if you are using BehaviorSubject
for sharing the value between components:
import { Observable } from 'rxjs/Observable';
import {tap, map, delay} from 'rxjs/operators';
private _user = new BehaviorSubject(null);
user$ = this._user.asObservable();
Observable.of('response').pipe(
tap(() =>this._user.next('yourValue'),
delay(0),
map(() => 'result')
);