I an Angular 2 app using Redux (with @ngrx/store), I have modeled the store this way:  {    modelA: {     ids: [1, 2],     entities: { 1: { name: "name modelA 1" },                 2: { name: "name modelA 2" }               }   },...
I am using Angular 6, ngrx/store. I have such effect that is responsible for updating things. Depends on some logic I want to dispatch different actions. What is the difference if I use switchMap insted of map?  This is what I tried but it doesn'...
Im trying to write login flow for my app using ngrx store + ng effects. I have managed to write it and it works in happy scenerio, but when user inputs wrong values to the form, so that server responds with 401, the next login attempt has no effects....
I'm new to angular 2+ and RxJS, trying to get used to RxJS.  I show load spinner on route transitions, but only if it takes more then certain amount time, lats say 160ms I have a load spinner as a separate component, with subscription to ngrx sto...
I am working on an ngrx selector that converts a section of the state tree into a view model.  As a simple example, in my state tree I have an array of manager.  Thus I have the following setup for my state tree, and view model-  export interface Man...
I am using Angular 6, ngrx/store, ngrx/effects. I have an effect that should be triggered when i press "Save" button. I am using withLatestFrom there to collect all data what i need for sending it to the server:  @Effect({dispatch: false})...
Something I noticed the other day. I was subscribing to the Actions stream inside @ngrx/effects. I noticed (an issue for me) where a component, which subscribes to Actions late, receives the last dispatched action. This I can see is because the dispa...
TL,DR; I have successfully passed the output of Async Pipe into a child component. But when the condition fails (filter => false), I want to pass in the previously emitted value from an Observable.  Detail;  Using Selectors, I subscribe to two sli...
I am developing app using Angular 5 + NgRx. I have the browser extension Redux DevTools installed (for both Chrome and Firefox). But both extensions are disabled (icon is gray and does not show store history)  My app has several modules, which are lo...
I have a parent component (B) that is getting data from it's parent input (A) (C) have is (B) child component.  Inside (B) I'm having a selector that gets data from the store.  export class BComponent implements OnChanges {     @Input() branc...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.