Guest User

Untitled

a guest
May 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. I have an effect that invokes below service call
  2.  
  3. public getCandidates(): Observable {
  4. const url = 'Candidates Url';
  5. return this.http.get(url);
  6. }
  7.  
  8. I have an effect that invokes below service call
  9.  
  10. public getMatchingCandidates(conditions: any): Observable
  11. {
  12. const url = 'Matched Candidates Url';
  13. return this.http.get(url);
  14. }
  15.  
  16. I have an effect that invokes below service call
  17.  
  18. public getAssignedCandidates(id: number): Observable {
  19. const url = 'Assigned candidates url';
  20. return this.http.get(url);
  21. }
  22.  
  23. Candidate reducer :
  24.  
  25. export const reducers = {
  26. search: fromSearch.reducer,
  27. candidates: fromCandidates.reducer,
  28. collection: fromCollection.reducer
  29. };
  30.  
  31. Here is the injection of feature store to module
  32.  
  33. StoreModule.forFeature('candidates', combineReducers(fromStore.reducers))
Add Comment
Please, Sign In to add comment