Guest User

Untitled

a guest
Jan 18th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. @Injectable()
  2. export class NotificationEffects {
  3. @Effect({dispatch: false})
  4. notificationShow$ = this.actions$
  5. .ofType(notificationAction.NOTIFICATION_SHOW)
  6. .do((action: notificationAction.NotificationShowAction) => {
  7. this.notificationService.info(action.payload.config);
  8. });
  9.  
  10. constructor(private actions$: Actions, private notificationService: NotificationService) {}
  11. }
Add Comment
Please, Sign In to add comment