9 } from '@angular/platform-browser';
13 } from '@angular/core';
15 * Environment Providers
17 let PROVIDERS: any[] = [
19 * Common env directives
24 * Angular debug tools in the dev console
25 * https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md
27 let _decorateModuleRef = <T>(value: T): T => { return value; };
29 if ('production' === ENV) {
35 _decorateModuleRef = (modRef: any) => {
44 * Custom providers in production.
50 _decorateModuleRef = (modRef: any) => {
51 const appRef = modRef.injector.get(ApplicationRef);
52 const cmpRef = appRef.components[0];
54 let _ng = (<any> window).ng;
55 enableDebugTools(cmpRef);
56 (<any> window).ng.probe = _ng.probe;
57 (<any> window).ng.coreTokens = _ng.coreTokens;
67 * Custom providers in development.
73 export const decorateModuleRef = _decorateModuleRef;
75 export const ENV_PROVIDERS = [