logininfo.actions.ts 550 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { LOGININFO_SAVE } from '../constants';
import { Injectable } from '@angular/core';
import { NgRedux } from 'ng2-redux';
import { IAppState } from '../store';
import { HelperDataService } from '../services/helper-data-service';

@Injectable()
export class LoginInfoActions {
  constructor(
    private _ngRedux: NgRedux<IAppState>,
    private _hds: HelperDataService) {}

  saveLoginInfo = (loginInfo) => {
      return this._ngRedux.dispatch({
        type: LOGININFO_SAVE,
        payload: {
          loginInfo
        }
      });
  };

}