Skip to content

Instantly share code, notes, and snippets.

View davestacey's full-sized avatar

DaveStacey davestacey

View GitHub Profile
@davestacey
davestacey / app\actions\foo.ts
Last active March 27, 2017 23:16 — forked from JamesHenry/app\actions\foo.ts
ngMetadata 2.x - with @ngrx/store
import { Injectable } from 'ng-metadata/core'
import { Action } from '@ngrx/store'
interface SomePayload {
baz: string
}
/**
* Instead of passing around action string constants and manually recreating
* action objects at the point of dispatch, we create services encapsulating