2016-04-20 16:32:12 +03:00
|
|
|
/*
|
|
|
|
|
* These are globally available services in any component or any other service
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import {provide} from 'angular2/core';
|
|
|
|
|
|
|
|
|
|
// Angular 2
|
|
|
|
|
import {FORM_PROVIDERS} from 'angular2/common';
|
|
|
|
|
|
|
|
|
|
// Angular 2 Http
|
|
|
|
|
import {HTTP_PROVIDERS} from 'angular2/http';
|
|
|
|
|
// Angular 2 Router
|
2016-05-11 12:55:46 +03:00
|
|
|
import {ROUTER_PROVIDERS} from 'angular2/router';
|
2016-04-20 16:32:12 +03:00
|
|
|
|
2016-05-11 12:55:46 +03:00
|
|
|
import {LocationStrategy, PathLocationStrategy} from 'angular2/platform/common'
|
2016-04-20 16:32:12 +03:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Application Providers/Directives/Pipes
|
|
|
|
|
* providers/directives/pipes that only live in our browser environment
|
|
|
|
|
*/
|
|
|
|
|
export const APPLICATION_PROVIDERS = [
|
|
|
|
|
...FORM_PROVIDERS,
|
|
|
|
|
...HTTP_PROVIDERS,
|
|
|
|
|
...ROUTER_PROVIDERS,
|
2016-04-28 14:07:59 +03:00
|
|
|
provide(LocationStrategy, { useClass: PathLocationStrategy })
|
2016-04-20 16:32:12 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const PROVIDERS = [
|
|
|
|
|
...APPLICATION_PROVIDERS
|
|
|
|
|
];
|