• Skip to primary navigation
  • Skip to main content

Josh Withee

  • Home
  • Blog
  • Contact
  • Show Search
Hide Search

Observable

Pause RxJS Observable Pipe Until External Condition is Met

Josh Withee · July 26, 2024 · Leave a Comment

Delay an Observable pipe until an external condition is met, such as a property being populated on a global object. ngOnInit() { const isIdTokenPopulated = () => !!(this.account.idToken); // Create a notifier Observable that emits when the property is populated (as signaled by an event that …

[Read more...] about Pause RxJS Observable Pipe Until External Condition is Met

RxJS: Make API calls within an Observable pipe

Josh Withee · October 4, 2022 · Leave a Comment

Problem: Within your Observable pipe, you want to make a bunch of API calls to populate more info for the emitted value, and combine everything back into a single observable. In this example, we have an Angular component which has a method for fetching a list of people from an API and populates …

[Read more...] about RxJS: Make API calls within an Observable pipe

Copyright © 2025