Skip to content

Instantly share code, notes, and snippets.

View JamesHenry's full-sized avatar

James Henry JamesHenry

View GitHub Profile
@JamesHenry
JamesHenry / app\actions\foo.ts
Last active March 27, 2017 23:12 — forked from Hotell/app\app.component.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
@JamesHenry
JamesHenry / app\app.component.ts
Created July 2, 2016 12:33 — forked from Hotell/app\app.component.ts
ngMetadata 2.x - quick start
import { Component } from 'ng-metadata/core';
@Component({
selector: 'my-app',
template: '<h1>My First Angular 1 App <small>with ng-metadata!</small></h1>'
})
export class AppComponent { }