mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 17:30:14 +01:00
chore(dependencies): update dependencies, move to @types, some refactoring as per AngularClass/angular2-webpack-starter project
This commit is contained in:
parent
7d0ff2ef96
commit
e7fca6d4ed
24 changed files with 505 additions and 295 deletions
35
src/platform/browser-providers.ts
Normal file
35
src/platform/browser-providers.ts
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* 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
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue