Use iif rxjs.
iif accepts a condition function and two Observables. When
- an Observable returned by the operator is subscribed, condition function will be called.
https://www.learnrxjs.io/operators/conditional/iif
Use iif rxjs.
iif accepts a condition function and two Observables. When
https://www.learnrxjs.io/operators/conditional/iif