Last active
January 30, 2016 04:09
-
-
Save SirajGadhia/a6bd7de3ead83d8bf207 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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