| import {bootstrap} from 'angular2/platform/browser'; | |
| import {ROUTER_PROVIDERS} from 'angular2/router'; | |
| import {AppCmp} from './components/app/app'; | |
| import {MATERIAL_PROVIDERS} from 'ng2-material/all'; | |
| import {AuthHttp, AuthConfig} from 'angular2-jwt'; | |
| import {Http, HTTP_PROVIDERS} from 'angular2/http'; | |
| import {provide} from 'angular2/core'; | |
| bootstrap(AppCmp, [ | |
| ROUTER_PROVIDERS, | |
| MATERIAL_PROVIDERS, | |
| HTTP_PROVIDERS, | |
| provide(AuthHttp, { | |
| useFactory: (http) => { | |
| return new AuthHttp(new AuthConfig(), http); | |
| }, | |
| deps: [Http] | |
| }), | |
| AuthHttp | |
| ]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment