mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
Initial commit.
This commit is contained in:
commit
6558ee2fc4
92 changed files with 3193 additions and 0 deletions
34
src/platform/browser/providers.ts
Normal file
34
src/platform/browser/providers.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* 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
|
||||
import {ROUTER_PROVIDERS, LocationStrategy, HashLocationStrategy} from 'angular2/router';
|
||||
|
||||
// Angular 2 Material
|
||||
// TODO(gdi2290): replace with @angular2-material/all
|
||||
import {MATERIAL_PROVIDERS} from './angular2-material2';
|
||||
|
||||
/*
|
||||
* Application Providers/Directives/Pipes
|
||||
* providers/directives/pipes that only live in our browser environment
|
||||
*/
|
||||
export const APPLICATION_PROVIDERS = [
|
||||
...FORM_PROVIDERS,
|
||||
...HTTP_PROVIDERS,
|
||||
...MATERIAL_PROVIDERS,
|
||||
...ROUTER_PROVIDERS,
|
||||
provide(LocationStrategy, { useClass: HashLocationStrategy })
|
||||
];
|
||||
|
||||
export const PROVIDERS = [
|
||||
...APPLICATION_PROVIDERS
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue