angular-cli


Access to -aot parameter in code


we're using ahead of time compilation in our Angular app and initialize it with the following code
import { AppModuleNgFactory } from './aot/app/app.module.ngfactory';
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
However, in aot mode the great Augury tool does not work. Hence, during development, I start the app with ng serve --aot=false - but need to change the above code to:
import { AppModule } from './app/app.module';
platformBrowserDynamic().bootstrapModule(AppModule);
Is there a way to access to aot parameter in the code, maybe similar to environment.production so I can automate this?

Related Links

angularCLI Access-Control-Allow-Origin Multiple Origin Domains
Angular CLI how to merge json files
Angular CLI (ng) use single instead of double quotes
can't install angular cli on ubuntu 16.04
How to solve No 'Access-Control-Allow-Origin' header is present on the requested resource with angular 2 service written with angular-cli?
Usage of watch parameter in eject command of Angular CLI
Serving and testing a bundle after ng build
routerLink stopped working in #angular/cli
How to run Angularcli project with https
what is npm i bootstrap#next?
Angular-Cli Best way to manage notices
Puzzling angular-cli AOT error
Create Project with Angular 4 Release using angularcli
addons removed in angular-cli.json whats the replacement
angular-cli: ng serve command with config error
Augury Angular-cli When I installed the augury .Error is as follows

Categories

HOME
cil
jenkins-plugins
reverse-engineering
ncurses
couchdb-2.0
appmaker
orientation
filter
sequelize.js
height
google-classroom
hosts
rfid
iso
cortex-a
finite-group-theory
data-synchronization
cpanel
boolean-expression
google-maps-android-api-2
profile
hanami
chrome-native-messaging
cortex-m3
invoke-command
red-black-tree
android-vpn-service
ipfw
graph-databases
web-audio-api
transient
sidr
color-scheme
xen
declare
stdclass
code-composer
android-maps-v2
catia
nsjsonserialization
persistent
rhel6
slot
jcreator
unity3d-editor
autoresize
shinyjs
packagemaker
children
visible
zurb-foundation-apps
unsatisfiedlinkerror
pagekit
console-redirect
search-regex
mfc-feature-pack
flexjson
axes
fill
license-key
retro-computing
risk-analysis
manjaro
word-2013
em
collabnet
log4cplus
coin-flipping
jstack
openkinect
visual-c++-2010-express
baucis
jquery-tabs
magicalrecord-2.2
osx-snow-leopard
layered
driver-signing
sametime
transitive-closure-table
tridion2009
pys60
plone-funnelweb
ninject-extensions
gdt
supersized
hobo
jquery-selectbox
path-manipulation
associative
adobe-contribute
requestfactory
msn
file-encodings
scala-2.8
method-signature
system-codedom-compiler
rd

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App