Created
November 28, 2018 15:58
-
-
Save ngohungphuc/ce6ce572810c91ba4bc578ab7927ef2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import * as fromPortal from './reducers/portal.reducers'; | |
import * as fromRoot from '@core/store/reducers/index'; | |
import { PortalState } from './reducers/portal.reducers'; | |
import { createFeatureSelector, createSelector } from '@ngrx/store'; | |
export interface State extends fromRoot.State { | |
portal: PortalState; | |
} | |
export const selectPortalState = createFeatureSelector<PortalState>('portalModule'); | |
export const selectCommentState = createSelector( | |
selectPortalState, | |
fromPortal.getComments | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment