import { Directive , EventEmitter , Output } from '@angular/core' ; import { Actions } from '../actions' ; import { NgrxFormDirective } from './directive' ; @ Directive ( { selector : 'form[ngrxFormState][ngrxFormsAction]' , } ) export class NgrxLocalFormDirective < TStateValue > extends NgrxFormDirective < TStateValue > { @ Output ( ) ngrxFormsAction = new EventEmitter < Actions < TStateValue > > ( ) ; constructor ( ) { super ( null ) ; } protected dispatchAction ( action ) { this . ngrxFormsAction . emit ( action ) ; } }