Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about rxjs-subscriptions

Read more about rxjs-subscriptions

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - rxjs-subscriptions

How can I subscribe to a different service method using a conditional statement?

Can't figure out how to subscribe to the desired method of an Angular service depending on the conditional statement // this.someService.someMethod depending on the conditional statement .pipe(tak...
test-img

Constantine Rafikov

angular

rxjs

subject-observer

rxjs-subscriptions

Votes: 0

Answers: 2

Latest Answer

You can use the RxJs Conditional Operator iff to achieve that if both of your services return an Observable or a Promise. The iff operator takes 3 arguments, first when being your condition, 2nd and 3...
test-img

HassanMoin

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved