Top "Rxjs" questions

The Reactive Extensions for JavaScript (RxJS) is a set of libraries for composing asynchronous and event-based programs using observable collections and Array Extras style composition.

take(1) vs first()

I found a few implementation of AuthGuards that use take(1). In my project, I used first(). Do both work the …

angular rxjs angular2-observables
What is the difference between Subject and BehaviorSubject?

I'm not clear on the difference between a Subject and a BehaviorSubject. Is it just that a BehaviorSubject has the …

rxjs
Cannot find module 'rxjs-compat/Observable'

I am currently upgrading angular 4 to angular 6 code. I have installed "rxjs": "^6.3.2" and un-installed rxjs-compact as I have migrated the …

angular rxjs
Best way to import Observable from rxjs

In my angular 2 app I have a service that uses the Observable class from the rxjs library. import { Observable } from …

angular typescript rxjs angular2-observables
Why do we need to use flatMap?

I am starting to use RxJS and I don't understand why in this example we need to use a function …

javascript rxjs
Chaining Observables in RxJS

I'm learning RxJS and Angular 2. Let's say I have a promise chain with multiple async function calls which depend on …

javascript promise reactive-programming rxjs rxjs5
Property 'catch' does not exist on type 'Observable<any>'

On the Angular 2 documentation page for using the Http service, there is an example. getHeroes (): Observable<Stuff[]> { return …

javascript angular typescript rxjs
What is the correct way to share the result of an Angular Http network call in RxJs 5?

By using Http, we call a method that does a network call and returns an http observable: getCustomer() { return this.…

angular rxjs angular2-services rxjs5
Angular 4 display current time

What is the correct (canonical) way to display current time in angular 4 change detection system? The problem is as follows: …

javascript angular rxjs zonejs
Observable Finally on Subscribe

According to this artcle, onComplete and onError function of the subscribe are mutually exclusive. Meaning either onError or onComplete events …

javascript rxjs rxjs5