As the title probably doesn't explain to well what I am doing, I'll give a small example: A REST api returns a list of objects. For each of them, a checkbox sh
How can I have distinctUntilChanged work with objects like this myObs = Observable.from([{foo: 'bar'}, {foo: 'bar'}]); myObs.distinctUntilChanged() .subscri
How can I have distinctUntilChanged work with objects like this myObs = Observable.from([{foo: 'bar'}, {foo: 'bar'}]); myObs.distinctUntilChanged() .subscri
Why I losing the type in my pipe function? How to fix that? Property 'n' does not exist on type '{}' stackblitz import { of, map, Observable, Subject, pipe, t
I have multiple boolean properties which are false by default, but that may only be set to true at the start of the application. Should the property become true
I have following method in typescript, I need to bind to angular grid CountryService GetCountries() { return this.http.get(`http://services.groupkt.com/co
In an Ionic2 app I'm using ng2-translate the strings in my app. Now I need to split the translation file into several files per language, for example de.json an
I'm trying to implement a togglable auto-save feature using RxJS streams. The goal is to: While auto-save is enabled, send changes to the server as they come.
I have two dropdowns in my angular app. Second one is populated based on first dropdown value. I am using switchmap. It works fine as long as there is no error.
tl;dr: Basically I want to marry Angular's ngOnDestroy with the Rxjs takeUntil() operator. -- is that possible? I have an Angular component that opens several
Lets say I have an object with 4 fields like this: obj = {a:"3", b:"7", c:"10", d:"123"} and I need to 'narrow' it to an object with fewer fields, like that:
In my template I have a field and two buttons: <div class="btn-plus" (click)="add(1)"> - </div> <div class="txt"> {{ myValue }} </div>
I'm using a Service to "ping" my server every 2.5s, returning the response time from my server. Therefore I am using observables. I am also using angular 2 an
I have a list of items to parse, but the parsing of one of them can fail. What is the "Rx-Way" to catch error but continue executing the sequence Code Sample:
I'm trying to fetch data from firebase, but facing an error "Property 'subscribe' does not exist on type 'OperatorFunction'" any idea? whats missing here
I am wondering what is the use of asObservable: As per docs: An observable sequence that hides the identity of the source sequence. But why would you
I have this use case. A component should NOT be visible when from a list of Boolean observables one of those is true. That is the easy part, for this, I have my
Inside my NGXS store I have the following async selector @Selector() static async mainState(store: IMyStore): Promise<IMyState> { return this.getActiv
I've a service to get the data from an API in my angular app. The service is used in different components - and the same http request is send multiple times. To
Following this post I've decided to write a marble test for this operator. Here is a basic test: it('Test lossy zip', () => { const a = hot('a---a-