auto provide HTTP_PROVIDERS

This commit is contained in:
Adam Bradley
2015-10-18 22:15:20 +01:00
parent 5a8d9be121
commit 4b2eed7e59

View File

@@ -1,5 +1,6 @@
import {bootstrap, provide} from 'angular2/angular2';
import {ROUTER_PROVIDERS, LocationStrategy, HashLocationStrategy} from 'angular2/router';
import {HTTP_PROVIDERS} from 'angular2/http';
import {IonicApp} from '../components/app/app';
import {Config} from './config';
@@ -60,6 +61,7 @@ export function ionicProviders(config) {
NavRegistry,
ROUTER_PROVIDERS,
provide(LocationStrategy, {useClass: HashLocationStrategy}),
HTTP_PROVIDERS,
];
}