I have a behaviour subject which holds an observable of some data. i.e.
BehaviorSubject<Observable<data>>
How can I subscribe to the nested observable directly?
I have a behaviour subject which holds an observable of some data. i.e.
BehaviorSubject<Observable<data>>
How can I subscribe to the nested observable directly?
You should just pipe it to one of the flattening operators, like
mergeMap
:yourSubject.pipe(mergeMap(v => v))
My example: