I have two observables:
this.one$ = this.httpClient.get<any>();
this.tow$ = this.httpClient.get<any>();
I need to get third observable as result by condition:
if (url == "one) {
this.result$ = this.one$;
} else if (url == "two") {
this.result$ = this.two$;
}
Using in template:
{{ result | async }}
How to do this more elegant using Rxjs?