Skip to content

Instantly share code, notes, and snippets.

@SirajGadhia
Last active January 30, 2016 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SirajGadhia/a6bd7de3ead83d8bf207 to your computer and use it in GitHub Desktop.
Save SirajGadhia/a6bd7de3ead83d8bf207 to your computer and use it in GitHub Desktop.
//http://www.siraj360.com/ng2/ :: A single page application developed with Angular 2 (beta) and Bootstrap 4 (alpha).
import { bootstrap } from 'angular2/platform/browser';
import { bind } from 'angular2/core';
import { FORM_PROVIDERS } from "angular2/common";
import { ROUTER_PROVIDERS, LocationStrategy, HashLocationStrategy } from 'angular2/router';
import { HTTP_PROVIDERS } from 'angular2/http';
import { AppComponent } from './components/app/app.component';
bootstrap(AppComponent, [
ROUTER_PROVIDERS,
FORM_PROVIDERS,
HTTP_PROVIDERS,
bind(LocationStrategy).toClass(HashLocationStrategy)
]).then(
success => console.log('ng2SB4 bootstrapped!'),
error => console.log(error)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment