Created
September 17, 2017 16:07
-
-
Save philipszdavido/14f73b592d6a8512ce769608f08833c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//src/app/redux/reducer/index.ts | |
import { | |
combineReducers, | |
ActionReducer, | |
ActionReducerMap, | |
createSelector, | |
createFeatureSelector, | |
META_REDUCERS | |
} from '@ngrx/store'; | |
import * as fromArticle from '../reducer/articles'; | |
import { compose } from "@ngrx/core"; | |
import { combineLatest } from 'rxjs/observable/combineLatest'; | |
import { storeLogger } from 'ngrx-store-logger'; | |
export interface State { | |
articles:fromArticle.State, | |
} | |
export const reducers: ActionReducerMap<State> = { | |
articles:fromArticle.reducer, | |
} | |
export const getArticleState = (state : State) => state.articles; | |
export const getArticles = createSelector(getArticleState,fromArticle.getArticles); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment