mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
auto provide HTTP_PROVIDERS
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user