Skip to main content

All Questions

11 votes
2 answers
9k views

RXJS while loop for pagination

I try to query all people data from the swap api. The URL swapi.co/api/people returns an object with an people array and the URL(swapi.co/api/people/?page=2) where I get the next data from. What I ...
Patrick's user avatar
  • 447
8 votes
1 answer
5k views

RxJS and using with Angular 1

I am working on an integration between Angular 1.5 app with RxJS. I was thinking of using RxJs directly but then I found the following although its not been updated for a few months. https://github....
Martin's user avatar
  • 24.3k
7 votes
2 answers
5k views

Angular 2.0 - converting promise chaining to Observables

I am converting an NG 1.X service to NG 2.0. My NG 1.X service has promise chaining (simplified): dataService.search = function(searchExp) { return this.getAccessToken() .then(function(...
Yaniv Efraim's user avatar
  • 6,721
2 votes
1 answer
384 views

Can I use RxJS to do inter-panel communication?

Note: I mentioned RxJS but any reactive library can do (Bacon, Kefir, Most, etc.). My context is AngularJS but the solution is probably independent (more or less). My problem / task: we have an ...
PhiLho's user avatar
  • 41.2k
0 votes
1 answer
229 views

What's the Reactive way to collapse elements into an array?

Take the following TypeScript/Angular 2 code sample: query(): Rx.Observable<any> { return Observable.create((o) => { var refinedPosts = new Array<RefinedPost>(); ...
kenstone's user avatar
  • 516
1 vote
1 answer
1k views

How to handle errors in RxJS using Angular

I'm working on an Angular application which shows a list of items fetched from a RESTful API. The content of the list depends on a query. The query can be passed either by filling in an input field, ...
ndequeker's user avatar
  • 8,008
19 votes
1 answer
7k views

How does rxjs observable perform compare to $watch in Angularjs 1.X?

I've heard from various ng-speakers how $watch is dangerous for performance of your application. I was wondering if anyone has compared performance of Rxjs' Observable against $watch in an AngularJS ...
pchitre's user avatar
  • 191