Skip to content

Instantly share code, notes, and snippets.

View Splaktar's full-sized avatar

Michael Prentice Splaktar

View GitHub Profile
@Splaktar
Splaktar / flexBox.md
Last active November 2, 2015 05:29 — forked from ThomasBurleson/flexBox.md
Angular Material - FlexBox styles for Layout features
[flex] { 
  box-sizing: border-box;
 }

[flex]           { flex: 1;         } // == { flex: 1 1 0%; }
[flex="grow"]    { flex: 1 1 100%;  }
[flex="initial"] { flex: 0 1 auto;  }
[flex="auto"]    { flex: 1 1 auto;  }
[flex="none"] { flex: 0 0 auto; }
@Splaktar
Splaktar / app.component.ts
Last active July 14, 2016 05:27 — forked from StephenFluin/app.component.ts
Angular 2 Analytics via Routing
//...
import {ROUTER_DIRECTIVES, Router, Event, NavigationEnd} from '@angular/router';
import {environment} from './environment';
//...
declare var ga : any;
//..
constructor(private router: Router ) {