Guest User

Untitled

a guest
Jan 16th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. export const reducerToken = new InjectionToken<ActionReducerMap<ApplicationState>>('Reducers');
  2.  
  3. export const rootReducer = {
  4. screen: screenReducer, //Register your screen reducer
  5. };
  6.  
  7. export function getReducers() {
  8. return rootReducer;
  9. }
  10.  
  11. export const reducerProvider = [
  12. {
  13. provide: reducerToken,
  14. useFactory: getReducers
  15. }
  16. ];
  17.  
  18. export const metaReducers: MetaReducer<ApplicationState>[] =
  19. environment.production ? [ reset ] : [ reset ];
  20.  
  21. export function getMetaReducers(): MetaReducer<ApplicationState>[] {
  22. return metaReducers;
  23. }
Add Comment
Please, Sign In to add comment