I have a situation where I need to make an popup inside a observable stream, and base on actions of that popup, my stream continue. something like this
switchMap(() => {
if () { //not showing popup
return of(something)
}
else {
return openPopup();
}
}),
// continue on stream
I imagine my openPopup would be something like this
openPopup(): Observable<boolean> {
// something in here to trigger a custom component (I guess)
// and then listen to its action here and return it
}
Can someone help to make an simple workaround?