7 } from '@angular/platform-browser';
11 } from '@angular/core';
13 * Environment Providers
15 let PROVIDERS: any[] = [
17 * Common env directives
22 * Angular debug tools in the dev console
23 * https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md
25 let _decorateModuleRef = <T>(value: T): T => { return value; };
27 if ('production' === ENV) {
33 _decorateModuleRef = (modRef: any) => {
42 * Custom providers in production.
48 _decorateModuleRef = (modRef: any) => {
49 const appRef = modRef.injector.get(ApplicationRef);
50 const cmpRef = appRef.components[0];
52 let _ng = (<any> window).ng;
53 enableDebugTools(cmpRef);
54 (<any> window).ng.probe = _ng.probe;
55 (<any> window).ng.coreTokens = _ng.coreTokens;
65 * Custom providers in development.
71 export const decorateModuleRef = _decorateModuleRef;
73 export const ENV_PROVIDERS = [