mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-26 03:06:09 +01:00
Initial commit.
This commit is contained in:
commit
6558ee2fc4
92 changed files with 3193 additions and 0 deletions
34
src/platform/environment.ts
Normal file
34
src/platform/environment.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// Angular 2 browser
|
||||
import {
|
||||
ELEMENT_PROBE_PROVIDERS,
|
||||
ELEMENT_PROBE_PROVIDERS_PROD_MODE
|
||||
} from 'angular2/platform/browser';
|
||||
|
||||
// Angular 2
|
||||
import {enableProdMode} from 'angular2/core';
|
||||
|
||||
// Environment Providers
|
||||
let PROVIDERS = [];
|
||||
|
||||
if ('production' === ENV) {
|
||||
// Production
|
||||
enableProdMode();
|
||||
|
||||
PROVIDERS = [
|
||||
...PROVIDERS,
|
||||
ELEMENT_PROBE_PROVIDERS_PROD_MODE
|
||||
];
|
||||
|
||||
} else {
|
||||
// Development
|
||||
PROVIDERS = [
|
||||
...PROVIDERS,
|
||||
ELEMENT_PROBE_PROVIDERS
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
|
||||
export const ENV_PROVIDERS = [
|
||||
...PROVIDERS
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue