2016-04-20 16:32:12 +03:00
|
|
|
/*
|
|
|
|
|
* These are globally available services in any component or any other service
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// Angular 2
|
2016-07-28 13:38:22 +03:00
|
|
|
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
|
2016-04-20 16:32:12 +03:00
|
|
|
// Angular 2 Http
|
2016-07-28 13:38:22 +03:00
|
|
|
import { HTTP_PROVIDERS } from '@angular/http';
|
|
|
|
|
// Angular 2 Router
|
|
|
|
|
import { provideRouter } from '@angular/router';
|
|
|
|
|
// Angular 2 forms
|
|
|
|
|
import { disableDeprecatedForms, provideForms } from '@angular/forms';
|
2016-07-05 19:57:31 +02:00
|
|
|
|
2016-04-20 16:32:12 +03:00
|
|
|
|
2016-07-28 13:38:22 +03:00
|
|
|
import { routes } from '../app/app.routes';
|
2016-07-08 13:10:36 +03:00
|
|
|
|
2016-04-20 16:32:12 +03:00
|
|
|
/*
|
2016-07-08 13:10:36 +03:00
|
|
|
* Application Providers/Directives/Pipes
|
|
|
|
|
* providers/directives/pipes that only live in our browser environment
|
|
|
|
|
*/
|
2016-04-20 16:32:12 +03:00
|
|
|
export const APPLICATION_PROVIDERS = [
|
2016-07-08 13:10:36 +03:00
|
|
|
// new Angular 2 forms
|
|
|
|
|
disableDeprecatedForms(),
|
|
|
|
|
provideForms(),
|
2016-07-28 13:38:22 +03:00
|
|
|
|
|
|
|
|
provideRouter(routes),
|
|
|
|
|
|
2016-04-20 16:32:12 +03:00
|
|
|
...HTTP_PROVIDERS,
|
2016-07-28 13:38:22 +03:00
|
|
|
|
|
|
|
|
{ provide: LocationStrategy, useClass: HashLocationStrategy }
|
2016-04-20 16:32:12 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export const PROVIDERS = [
|
|
|
|
|
...APPLICATION_PROVIDERS
|
|
|
|
|
];
|