import { Action , createReducer , on } from '@ngrx/store' ; export const appFeatureKey = 'app' ; export interface AppState { loggedUser : string ; } export const initialState = { loggedUser : '' } ; export const reducer = createReducer ( initialState ) ;