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

Can multiple query parameters be passed to method getWithQuery() on @ngrx/data?

This ngrx/data API has method: getWithQuery(queryParams: string | QueryParams, options?: EntityActionOptions): Observable To retreive data from the data source we can, in a simple form, use: const criteria = { id:…
Felix
  • 1,662
  • 2
  • 18
  • 37
0
votes
0 answers

NGRX Data - Providing multiple EntityCollectionReducerMethodsFactory classes to Module

Following the documentation for additional collection state, I have been able to make it work with only one entity collection. In the module I am building I am using three entity collections so far. I'm not sure how the injection in the module…
Morfinismo
  • 4,985
  • 4
  • 19
  • 36
0
votes
1 answer

Ngrx/effects is not working in async with angular 2

Am new to Ngrx, We got stuck with the implementation , Need some help Architecture: We are trying to fill the store when the User is authenticated by that time am trying to redirect. Expectation: Effects should be called as async and In ui we have…
0
votes
0 answers

How to implement both input search and dropdown filter for a json data in angular

I am trying to implement a search filter and dropdown filter for JSON data. using that data I need to filter my table using separate search filter and dropdown filter. only the search filter I have implemented and works fine but stuck in the…
0
votes
1 answer

Angular & NgRx-Data update & subscription issue

I'm using Angular 11 & NgRx-Data 10.1.2. I am using the smart component/dumb component pattern. In my 'list' view when I select an item I route to a detail page passing the item id. In my detail page, I subscribe to the entity service…
John McArthur
  • 916
  • 1
  • 12
  • 30
0
votes
0 answers

NgRx Data: Cannot inject entity services to a service

Neither public constructor(private readonly objectEntityService: ObjectEntityService) {} nor public constructor(entityServices: EntityServices) { entityServices.getEntityCollectionService("Object"); } works inside a service. Injecting to a…
0
votes
1 answer

How to provide initial state to ngrx/data?

I am using @ngrx/data in an Angular 11 app, and I want to provide initial state to my Settings entity like you can do with @ngrx/store with StoreModule.forRoot({}, {initialState: someInitialState}. What is the correct way to provide initial state to…
RcoderNY
  • 1,204
  • 2
  • 16
  • 23
0
votes
1 answer

Custom Endpoint with @NGRX/Data

I need to modify my endpoint using @NGRX/Data. I have written a dataservice that is described in the documentation that does change the endpoint, the problem is that the data is not loaded into the store. How do I use this custom dataservice and…
0
votes
1 answer

Override Ngrx/data data service urls

I'm trying to use ngrx/data with my api. My api exposes resources under the format /resources for all requests instead of POST /resource (without 's'). Same for GET /resources/:id instead of /resource/:id as required by ngrx/data. How can I force…
user1445685
  • 793
  • 1
  • 11
  • 25
0
votes
0 answers

Store not dispatch success action

I had such a problem that, store not dispatch success action, in all other cases, everything works for me, but in this it does not My actions export const getPrintingEditions =…
mrshk_vv
  • 15
  • 1
  • 7
0
votes
2 answers

How to link parent in child entity - ngrx, ngrx/data

I'm building an Angular app for a Travel Agency. In a hotel listing page, I need to show Country and City of the hotel. I'm getting Country, City and Hotel data from ngrx/data EntityService. If I use nested subscription it work fine, but I'm sure…
Nesar
  • 5,599
  • 2
  • 22
  • 21
0
votes
1 answer

Is it possible to get a regular value from state and not as Observable angular Ngrx?

I'm wondering if I can get a regular value type from NGRX state and not an Observable?
Shira
  • 89
  • 2
  • 2
  • 7
0
votes
1 answer

NgRx Data, EntityCollectionService's default Api not Match Asp.net Core Web Api

I have service that extends EntityCollectionServiceBase of ngrx\data @Injectable() export class ProductService extends EntityCollectionServiceBase { constructor(elementsFactory: EntityCollectionServiceElementsFactory) { …
0
votes
1 answer

ngrx/data cannot get selectId to use Id instead on id

Brand new to ngrx. My Id (capital Id) is not being mapped - system is trying to use id, leading to multiple console errors. I am using "@ngrx/data": "^8.6.0". I am using 8.?? because I am on Angular 8 (planning 9 in a month). Can I use an newer…
KenF
  • 544
  • 4
  • 14
0
votes
1 answer

UNIT TEST JASMINE @NGRX/DATA

I am trying to write unit tests for my angular project using @ngrx/data!I get the errors Failed: Unexpected value 'EntityCollectionServiceBase' imported by the module 'DynamicTestModule'. Please add an @NgModule annotation. NullInjectorError:…
user14053020