Skip to content

Instantly share code, notes, and snippets.

View johnlindquist's full-sized avatar
💭
Eating a taco 🌮

John Lindquist johnlindquist

💭
Eating a taco 🌮
View GitHub Profile
@johnlindquist
johnlindquist / config.js
Created March 15, 2016 20:45
angular2 http demo
System.config({
transpiler: 'typescript',
typescriptOptions: {
emitDecoratorMetadata: true
},
map: {
app: './src'
},
packages: {
app: {
@johnlindquist
johnlindquist / config.js
Created March 15, 2016 20:46
angular2 http demo
System.config({
transpiler: 'typescript',
typescriptOptions: {
emitDecoratorMetadata: true
},
map: {
app: './src'
},
packages: {
app: {
@johnlindquist
johnlindquist / config.js
Created March 16, 2016 04:39
Angular 2 @ngrx/store @ngrx/devtools ngrx-store-router example
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: "./src",
@johnlindquist
johnlindquist / config.js
Last active March 17, 2016 17:22
angular 2 with sagas and reducers
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: "./src",
@johnlindquist
johnlindquist / config.js
Created March 16, 2016 22:00
Angular 2 RxJS TypeWriter
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: "./src",
@johnlindquist
johnlindquist / config.js
Last active September 18, 2018 12:50
Angular 2 RxJS TypeWriter
System.config({
//use typescript for compilation
transpiler: 'typescript',
//typescript compiler options
typescriptOptions: {
emitDecoratorMetadata: true
},
//map tells the System loader where to look for things
map: {
app: "./src",
@johnlindquist
johnlindquist / README.md
Last active December 1, 2017 18:17
Angular 2 Clock

Angular2 Starter Gist Run

import {Component} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {Observable} from 'rxjs/Rx';
@Component({
selector: 'app',
template: `
{{clock | async | date:'medium'}}
`
})
export class App {

Angular2 Starter Gist Run

@johnlindquist
johnlindquist / ts.md
Last active March 17, 2016 19:33
Opinion

Anyone have an opinion on this field assignment to this in classes?

export class App {
    foo = this.bar;
    
    constructor(public bar){
    }
}