Questions tagged [angular-redux]

angular-redux is Integration of your redux store into your Angular applications. Use this when dealing with Questions related to redux with Angular applications

68 questions
0
votes
1 answer

How to call a function received from async stream using Angular async pipe? Error: Cannot have a pipe in an action expression

I would like to call a function received from a stream of data using Angular 9 async pipe. The following code (onApprove)="(modalData$ | async).onApprove()" throws this error: Cannot have a pipe in an action expression I couldn't find a solution…
noam steiner
  • 4,034
  • 3
  • 27
  • 42
0
votes
1 answer

Where to iterate through JSON object

I'm building something with Angular and using redux. My json object has objects that have certain values. Lets pretend: name: "john", sex: "m" children: [ { name: "joe", sex: "m" children: [ { name: "mary", sex: "f" children:…
bequr
  • 19
  • 5
0
votes
1 answer

Observable syntax for filtering by URL parameters?

I am trying to filter a store subscription based on route params, but something about my syntax is not correct. I am trying to pipe the params down so the filter rxjs operator can filter the store the store based on the…
0
votes
1 answer

Test Angular component that brings in an observable derived from @angular-redux/store's "@select()" method

Okay. So I have a component called "Account" which uses @select() to make user$. The type of user$ is an Observable with the interface of "User" @select user$: Observable I also have a variable called 'user'. In the constructor of this…
0
votes
1 answer

How to initialize root store in angular-redux/store for testing?

I want to set the initial root Store for angular redux instead of calling getSelectorStub for one selector at a time. What's the best way to do this?
user2167582
  • 5,986
  • 13
  • 64
  • 121
0
votes
1 answer

How to open mat-menu-item in a new tab in angular using proper angular routing?

How to open the mat-menu-items in a new tab when the user clicks on it, i have tried all the possible ways mentioned below, am able to open in a new tab but the current tab is going completely blank until the new tab gets the data.
0
votes
1 answer

How to use redux-state-sync middleware with angular-redux?

I have existing code where I have configured the store in AppModule constructor: export class AppModule { constructor(ngRedux: NgRedux) { // Tell @angular-redux/store about our rootReducer and our initial state. // It will…
char m
  • 7,840
  • 14
  • 68
  • 117
0
votes
1 answer

How to subscribe the change value of state in reduce angular 7

I am using redux with angular 7. I am able to add the value to the state. But how can I subscribe the change value of the state. Here is the code that I tried Selector export const selectProfessionalLearningTeacherFeature = …
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
0 answers

How to manage in-change-out object flow in Angular using redux

I've been using angular-redux on my current project at work for quite a while, recently I noticed very strange behavior and it seemed to me that State is being mutated! Then I've installed redux-freeze and got a lot of object is not extensible…
Chaz Ashley
  • 389
  • 1
  • 15
0
votes
1 answer

Testing Angular with @angular-redux/store in Storybook

I wrote this up on @angular-redux/store and was wondering if a solution already existed. https://github.com/angular-redux/store/issues/551 Here's a recap to save you from reading the link: Using Angular and Storybook has worked out well so far.…
westandy
  • 1,360
  • 2
  • 16
  • 41
0
votes
1 answer

Angular does not update View (redux, ionic ...)

I have a very simple Ionic page. This page shows a status of a Reduxstate.In this page, I have a button in which I get into another page and there I can change the state and return back. If I return back the view will not update. I've spent quite a…
Yusuf Azal
  • 218
  • 1
  • 14
0
votes
0 answers

@angular-redux implementation

I am implementing redux in my test application for managing the app state, My current scenario is I need hit the backend service and update the response back to my app state once service success. Henceforth I implemented effects which will handle…
venkatesh
  • 1
  • 2
0
votes
1 answer

Data on page not loading properly when navigated to using the url bar or on refresh, using Angular 6 and ngrx

Data on a page is not loading properly when navigated to using the url bar or on refresh, but loads when navigated to by using the button on sidebar (with a routerLink). Basically the page sends API requests with a users accountID and returns the…
John Murphy
  • 329
  • 3
  • 10
0
votes
1 answer

correct registartion of epics in @angular-redux/store configureStore 9 ver

I have moved own project to angular 6, @angular-redux/store 9 from 5 version. All was fine, but way for registrate epics in middleware not worked. I remove all epics from middleware except logger and startup was fine with all actions executed. Then…
faradzen
  • 11
  • 2
0
votes
1 answer

Angular 4 - Save from html template to the mock json DB

Angular 4 application , i have a input text boxes, where values have to be stored from template to the json data , that im using as mock db. I have written services and save function below, but not ablt to save it in the .json file. Idea or help to…
user8819437
  • 69
  • 1
  • 13