UNPKG

ekangularbasetest3

Version:

Authentication service for usermanagement(oidc client)

19 lines (16 loc) 496 B
import { Action } from '@ngrx/store'; import { NotificationMod } from '../notification/UnifiedNotification.service'; export const UPDATEE = 'UPDATEE'; export interface ExtraAct extends Action { value:NotificationMod; } export function unifiedNotificationReducer(state: NotificationMod = <NotificationMod>{}, action: ExtraAct) { switch (action.type) { case UPDATEE: // alert('update:'+action.value); return action.value; default: return state; } }