Skip to content

Instantly share code, notes, and snippets.

@daviddt
Created August 20, 2015 13:32
Show Gist options
  • Save daviddt/f99a6e985fdc1d43c808 to your computer and use it in GitHub Desktop.
Save daviddt/f99a6e985fdc1d43c808 to your computer and use it in GitHub Desktop.
/// <reference path="../typings/_custom.d.ts" />
import { bootstrap, bind } from 'angular2/angular2';
import { routerInjectables, LocationStrategy, HashLocationStrategy } from 'angular2/router';
import { Spotify } from './services/spotify';
import { App } from './components/app';
var universalInjectables = [
routerInjectables,
Spotify,
bind(LocationStrategy).toClass(HashLocationStrategy)
];
bootstrap(App, [universalInjectables]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment