John Papa and Ward Bell's Zero Ngrx Boilerplate - You may never write an action, reducer, selector, effect, or HTTP dataservice again.
Questions tagged [angular-ngrx-data]
120 questions
1
vote
0 answers
Adding NgRx with Nx MFE cause Unable to evaluate this expression statically
Adding NgRx to the Nx MFE angular application cause the below issue, removing the generated files issue is not there
@NgModule({
declarations: [AppComponent],
imports: [
.........
StoreModule.forRoot(
{ product: productStateReducer…

San Jaisy
- 15,327
- 34
- 171
- 290
1
vote
1 answer
How do I set entity in ngrx if it is not an array?
I am learning ngrx/data
From the code sample on line, it uses heros(plural)
import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { Hero } from '../../core';
import { HeroService } from…

Hello
- 796
- 8
- 30
1
vote
1 answer
How do I automatically refresh my PrimeNG table from data from my ngrx/data service?
I'm using Angular 13 and ngrx/data, store and entity (v.13). I have set up my ngrx/data service
export class MyObjService extends DefaultDataService {
...
}
and then a component using PrimeNg. I have a table to display all my…

Dave
- 15,639
- 133
- 442
- 830
1
vote
2 answers
ngrx/data - alternate id `has a missing or invalid entity key (id)`
As there are many IDs in the system, my entities linked to database tables and the tables use 'DbId' as the primary key - instead of the ngrx/data default: 'id'.
That is addressed inside the EntityMetadata map by the property: selectId. I followed…

Felix
- 1,662
- 2
- 18
- 37
1
vote
3 answers
bind variables from store to component in angular ngrx
I'm trying to bind the location variable in the component to another variable in the store via selector with ngrx v13 in angular, but when I put the variable with the property in the HTML I get an error:
error message: Property 'name' does not exist…

Gal Abitbul
- 11
- 2
1
vote
0 answers
Change NGRX data additionalCollectionState property
I want to change NgRx data additionalCollectionState property count when I request to getWithQuery. Unfortunately there is no change.
EntityMetaData
Dev Tools
@Injectable()
export class CourseLevelDataService extends DefaultDataService {
…

Murad Agha
- 11
- 2
1
vote
1 answer
HTTP Interceptor Not Calling in NgRX Data Configured module
Beginner in NgRx Data
I have implemented NgRx data in one of my Application module. Everything is working fine the only concern is api's that i am using in NgRx data configured module not triggering the HTTP Interceptor where i configured my Auth…

abhishek shrivastava
- 11
- 2
1
vote
1 answer
Not returning the true value from subscriber after execution its always returning default value false
While prefillLoginId is executing, I'm always getting false (default value), even though for each code inside the subscription is executing.
Please help me out to return True value.
private prefillLoginId(currentLoginId: any, cms: any)
{
…

Naga Raj
- 19
- 5
1
vote
1 answer
Using @ngrx/data, how can you form JSON patch documents from updates to entities on a custom data service?
My use case of @ngrx/data requires that I build custom entity data services by extending DefaultDataService. The API I am working with accepts JSON patch documents for updates. EntityCollectionDataService defines the following function for…

Colin
- 624
- 8
- 27
1
vote
1 answer
@ngrx/data How to cancel request providing with getAll, getWithQuery, getByKey
I use ngrx/data in my app.
I have a very quick application.
You can select something on UI and I need to update my view. A user can do it very quickly, I do not need any previous data from previous requests in that case.
But when I add switchMap -…

Mykola Novytskyi
- 133
- 1
- 7
1
vote
1 answer
Ngrx/data getWithQuery does not filter data according to the query I gave it
When I try to query for Approved Tags like so, it returns all entries not the approved ones
getAllApprovedTags(): Observable> {
return this.tagsService.getWithQuery({tagStatus:'Approved'});
}
I have also tried the…
1
vote
1 answer
@ngrx/data - Passing additional parameters or using custom functions in entity data service?
I am trying to use ngrx/data to handle CRUD operations on one of my models, but since it is "nested", I need to pass multiple parameters in the getById method. Is there a way to write custom functions in the data service (which extends the default…

b404
- 11
- 1
1
vote
2 answers
NgRx/Data how to set loaded flag for an entitiy on getWithQuery
I am currently using NgRx Data in my project to handle a news entity.
I have a resolver to check if the news entities loaded and then route to the /news page (where I show the news)
the resolver is listening to the loaded$ observablle if it is…

Maxe
- 83
- 7
1
vote
1 answer
Angulat 9 NgRx Data add method - create custom endpoint with query parameters;
I am using NgRx Data on an Angular 9 project and I am trying to save an user using the add() method. The downside is that the api endpoint is something like
http://localhost:{{port}}/something/{{clientId}}/users
UserComponent
saveUser(user) {
…

Alexandru Dumitru
- 71
- 1
- 5
1
vote
0 answers
Share store/actions between two different angular apps using ngrx/store
I am here because I need some support on something I need to do.
I am working on a project using NG4 + ngrx/store.
App1 and App2 are basically 2 different angular projects. They are not in the same tree and not in the same app.
I would like to be…

Lata
- 11
- 2