Questions tagged [angular-ngrx-data]

John Papa and Ward Bell's Zero Ngrx Boilerplate - You may never write an action, reducer, selector, effect, or HTTP dataservice again.

120 questions
0
votes
1 answer

how to subscribe to an Observable returned from ngrx's Entity Data Service

i have a service called TransactionEntityService derived from EntityCollectionServiceBase for a model called Transaction. export class TransactionEntityService extends EntityCollectionServiceBase { I am using TransactionDataService to…
Raas Masood
  • 1,475
  • 3
  • 23
  • 61
0
votes
0 answers

subscribing to observable returned from ngrx's Entity Collection Service not returning proper result

i created a service by driving my service from EntityCollectionServiceBase My entity is called Transaction. i am overriding the getAll method like this getAll(): Observable { return this.http …
Raas Masood
  • 1,475
  • 3
  • 23
  • 61
0
votes
1 answer

How to update Store with NgRX Data?

My component structure In case.component im caching the case data in Case entity of store then i fetch that from child components (case-actions, case-activity... etc). But when i update remotely the Case from any child component I dont know how to…
0
votes
1 answer

Client is Angular 8 with NgRx-Data; Server is NestJs + MySQL. How to get data using criteria and SQL?

As Angular, NgRx-Data and NestJs are becomming more and more popular, I feel there may be quite a few programmers who are wondering about the querying syntax for the following. I have a running prototype of a client (front end) composed in Angular 8…
Felix
  • 1,662
  • 2
  • 18
  • 37
0
votes
2 answers

Can I get data from an NgRx service without updating cache?

I have my service and need to get data using getWithQuery, but I don't need NgRx store to be updated. I just need to get this data and use them in subscribe method. I've tried different EntityActionOptions.mergeStrategy but cache is still…
0
votes
0 answers

Angular resolver unauthorized call

I am using ngrx/data and in order to set the store, i use resolver. user.resolver.ts @Injectable() export class UserResolver implements Resolve { loading = false; constructor(private userEntityService: UserEntityService) {} resolve( …
P.Shustenko
  • 93
  • 13
0
votes
2 answers

How to configure NGRX/Data for AOT compilation

I have a standard setup from the NGRX data docs with one Entity. Everything works with JIT but when I do AOT then I get following Error: ... Function expressions are not supported in decorators in 'entityConfig' 'entityConfig' references…
CodeChimpy
  • 560
  • 1
  • 6
  • 26
0
votes
1 answer

Get dispatched NGRX item in browser console

I am new in NGRX and i am using it in Angular2+ app. I have 2 components CREATE and READ. I am using NGRX to dispatch a message string on click event from CREATE COMPONENT. I dispatch string message to NGRX STORE from CREATE COMPONENT and show that…
Ahmad Habib
  • 2,053
  • 1
  • 13
  • 28
0
votes
1 answer

ngrx effects not getting data from api on first hit

Hi so below is my component code where save function has validateData() which has call to api and after the call in store.select is called but not getting the response on the first hit its getting update on second hit and navigatetonext() function…
Hel_UI
  • 115
  • 1
  • 1
  • 7
0
votes
1 answer

Observables Behaviour

I am struggling with something i think is pretty straight forward. Essentially i have an angular 8 application and am using ngrx. All my CRUD operations are working but i want to navigate to a url after successfully completing and add or…
ccocker
  • 1,146
  • 5
  • 15
  • 39
0
votes
3 answers

NGRX data entityResourceUrl depending on other entity. dynamic urls?

Usually when I want to specify url of the entity I have one specific url for it like serverURL/heroes. But now I have a case where I want to use entity belonging to other entity. For example lets say I want to use weapons of heroes. My http urls for…
GreedyAi
  • 2,709
  • 4
  • 29
  • 55
0
votes
1 answer

Why is the data modified between the resolver and the component with ngrx data?

I'm getting a small array of topics from the backend, using a resolver. I've customised the getAll() method to retrieve it from my local server. I'm getting the full array in the modified method when I log it, but when I use the entityService…
Chris
  • 31
  • 7
0
votes
2 answers

Using selectors with ngrx data

how can we use memoization capabilty of selectors using ngrx data with their capabality? How to create selectors from ngrx data "entityCache" state inside store? Thank you
-1
votes
1 answer

Where do I put code to initialize before custom module initialization in Angular 14?

I'm using ngrx/data 14 and Angular 14. I have built a custom module that I load in my app.module.ts file like so @NgModule({ declarations: [ AppComponent ], imports: [ ... AppRoutingModule, MyCustomModule, ... ], …
Dave
  • 15,639
  • 133
  • 442
  • 830
-1
votes
1 answer

Inject a Provider into an Angular Element (NGRX)

I keep getting the below error in my browser after I compile an Angular element that is using NGRX data: I attempted adding and removing EntityCollectionServiceElementsFactory to the providers in every NgModule in the NGRX data app without any…
1 2 3 4 5 6 7
8