Questions tagged [angular-state-managmement]

51 questions
0
votes
1 answer

Deleting an object in Angular NGXS

I have a problem deleting a comment on my post. How would you do it? I'm using the Angular NGXS state management. Pls see this link CLICK THIS LINK onDeleteComment(commentId: number){ this.store.dispatch(new DeleteComment(commentId)); } …
Joseph
  • 7,042
  • 23
  • 83
  • 181
0
votes
1 answer

Appending Data to State in Angular NGXS

I have a problem on how will be i able to append new datas since I'm making a server side scrolling. The posts is removing the old data when the new data arrives BUT i just want the new data to append and not not delete the old data in posts TS …
Joseph
  • 7,042
  • 23
  • 83
  • 181
0
votes
2 answers

How pass value to Effect in Ngrx - Angular

I'm pretty new to NgRx. I want to pass a value to an Effect. That value is the parameter to be searched in the service. Effect TS file export class UsersEffects { searchParam: string; @Effect() users$ = this.actions$.pipe( …
Patricio Vargas
  • 5,236
  • 11
  • 49
  • 100
0
votes
2 answers

ofActionSuccessful Return True Even When Have Errors in Angular NGXS

I have a problem when i try to edit my user. I've decided to fetch again all the users after successfully updated it. However if there is an error i don't want the form to reset and the modal to disappear. My problem is when i try to update the user…
Joseph
  • 7,042
  • 23
  • 83
  • 181
0
votes
2 answers

Angularjs: Same state and url for edit and add page

I want to use the same state for both edit and add page. Here is how my state looks .state('editProduct', { url: "/editProduct/:productId", data: {title: "Edit product"}, templateUrl: 'views/package/editProduct.html', controller:…
Varun Sukheja
  • 6,170
  • 5
  • 51
  • 93
-2
votes
1 answer

Angular 2: Data Persistent

I am new to Angular and have a query regarding data persistent. I have a scenario where I have to persist data. I am on my homepage component where I have a personal details form which is reactive on /personaldetails path. User needs to fill data…
Jay
  • 375
  • 2
  • 5
  • 17
1 2 3
4