Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const reducerToken = new InjectionToken<ActionReducerMap<ApplicationState>>('Reducers');
- export const rootReducer = {
- screen: screenReducer, //Register your screen reducer
- };
- export function getReducers() {
- return rootReducer;
- }
- export const reducerProvider = [
- {
- provide: reducerToken,
- useFactory: getReducers
- }
- ];
- export const metaReducers: MetaReducer<ApplicationState>[] =
- environment.production ? [ reset ] : [ reset ];
- export function getMetaReducers(): MetaReducer<ApplicationState>[] {
- return metaReducers;
- }
Add Comment
Please, Sign In to add comment