// The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`, but if you do // `ng build --env=prod` then `environment.prod.ts` will be used instead. // The list of which env maps to which file can be found in `.angular-cli.json`. import { ApplicationRef, NgModuleRef } from '@angular/core'; import { enableDebugTools } from '@angular/platform-browser'; import { IEnvironment } from '@armor/platform-browser'; import { CONFIGURATION } from './config.dev'; import 'zone.js/dist/long-stack-trace-zone'; export const ENVIRONMENT: IEnvironment = { configuration: CONFIGURATION, hmr: false, production: false, showDevModule: true, /** Angular debug tools in the dev console * https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md * @param modRef * @return {any} */ decorateModuleRef(modRef: NgModuleRef) { const appRef = modRef.injector.get(ApplicationRef); const cmpRef = appRef.components[0]; const ng = (window as any).ng; enableDebugTools(cmpRef); (window as any).ng.probe = ng.probe; (window as any).ng.coreTokens = ng.coreTokens; return modRef; } };