mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 23:40:14 +01:00
35 lines
851 B
TypeScript
35 lines
851 B
TypeScript
/*
|
|
* These are globally available services in any component or any other service
|
|
*/
|
|
|
|
// Angular 2
|
|
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
|
|
// Angular 2 Http
|
|
import { HTTP_PROVIDERS } from '@angular/http';
|
|
// Angular 2 Router
|
|
import { provideRouter } from '@angular/router';
|
|
// Angular 2 forms
|
|
import { disableDeprecatedForms, provideForms } from '@angular/forms';
|
|
|
|
|
|
import { routes } from '../app/app.routes';
|
|
|
|
/*
|
|
* Application Providers/Directives/Pipes
|
|
* providers/directives/pipes that only live in our browser environment
|
|
*/
|
|
export const APPLICATION_PROVIDERS = [
|
|
// new Angular 2 forms
|
|
disableDeprecatedForms(),
|
|
provideForms(),
|
|
|
|
provideRouter(routes),
|
|
|
|
...HTTP_PROVIDERS,
|
|
|
|
{ provide: LocationStrategy, useClass: HashLocationStrategy }
|
|
];
|
|
|
|
export const PROVIDERS = [
|
|
...APPLICATION_PROVIDERS
|
|
];
|