studentdatafields.actions.ts 591 Bytes
Newer Older
1 2 3 4
import { STUDENTDATAFIELDS_SAVE, STUDENTDATAFIELDS_RECEIVED } from '../constants';
import { Injectable } from '@angular/core';
import { NgRedux } from 'ng2-redux';
import { IAppState } from '../store';
5
//import { UserDataService } from '../services/user-data-service';
6 7 8 9 10


@Injectable()
export class StudentDataFieldsActions {
  constructor(
11
    private _ngRedux: NgRedux<IAppState>) {}
12

13
  saveStudentDataFields = (studentDataFields) => {
14 15 16 17

      return this._ngRedux.dispatch({
        type: STUDENTDATAFIELDS_SAVE,
        payload: {
18
          studentDataFields
19 20 21 22 23 24 25
        }

      });

  };

}