import { AppStore } from './app-store' ; import { Injectable } from '@angular/core' ; /**
 * Abstract class to provide utility methods for action creators
 */ @ Injectable ( ) export class Actions { public appStore ; constructor ( private _appStore ) { this . appStore = _appStore ; } public createDispatcher ( action ) { return ( ... n ) => this . appStore . dispatch ( action . call ( this , ... n ) ) ; } }