Skip to content

Instantly share code, notes, and snippets.

Avatar

Jorge jorgeunimicro

View GitHub Profile
View PersistentRouterOutlet.ts
import * as hookMod from 'angular2/src/router/lifecycle_annotations';
import * as routerMod from 'angular2/src/router/router';
import {isBlank, isPresent} from 'angular2/src/facade/lang';
import {StringMapWrapper} from 'angular2/src/facade/collection';
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {BaseException} from 'angular2/src/facade/exceptions';
import {
ElementRef, DynamicComponentLoader, Directive, Injector, provide, ComponentRef, Attribute
} from 'angular2/core';
import {
View PersistentRouterOutlet.ts
import * as hookMod from 'angular2/src/router/lifecycle_annotations';
import * as routerMod from 'angular2/src/router/router';
import {isBlank, isPresent} from 'angular2/src/facade/lang';
import {StringMapWrapper} from 'angular2/src/facade/collection';
import {Promise, PromiseWrapper} from 'angular2/src/facade/async';
import {BaseException} from 'angular2/src/facade/exceptions';
import {
ElementRef, DynamicComponentLoader, Directive, Injector, provide, ComponentRef, Attribute
} from 'angular2/core';
import {
@jorgeunimicro
jorgeunimicro / ngrxintro.md
Created Apr 12, 2016 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series
View ngrxintro.md
View outlet.ts
port {Directive, Attribute, ElementRef, DynamicComponentLoader} from 'angular2/core';
import {Router, RouterOutlet, ComponentInstruction} from 'angular2/router';
import {AuthService} from '../framework/authentication/authService'
import {Login} from './components/login/login';
@Directive({
selector: 'uni-router-outlet',
providers: [AuthService]
})
export class UniRouterOutlet extends RouterOutlet {
View gist:43c17a7c8a4b51143f25
port {Directive, Attribute, ElementRef, DynamicComponentLoader} from 'angular2/core';
import {Router, RouterOutlet, ComponentInstruction} from 'angular2/router';
import {AuthService} from '../framework/authentication/authService'
import {Login} from './components/login/login';
@Directive({
selector: 'uni-router-outlet',
providers: [AuthService]
})
export class UniRouterOutlet extends RouterOutlet {