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

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
Teamcity for building Angular cli app
angular cli update issue on local folder
Access to -aot parameter in code
Missing peer dependencies after installing latest angular-cli: What to do?
angular-cli ng serve : Error: No errors
Getting error after Angular cli update

Categories

HOME
paypal
sas
ssas-2012
antivirus
thunderbird-addon
memory-leaks
ubuntu-12.04
google-spreadsheet-api
unity2d
packer
viber
future
multiple-monitors
zend-framework-mvc
flexboxgrid
uiautomator
header-files
nmf
shopping-cart
sumo
hash-collision
classpath
invoke-command
cell-array
devforce
vegan
android-vpn-service
pari
salesforce-chatter
nunit-3.0
readfile
initializer
magiczoomplus
visualstudio.testtools
common.logging
cppunit
mod-fcgid
encapsulation
number-theory
bnd
slot
tofixed
react-native-fbsdk
fontconfig
ingres
icefaces
activeweb
cron-task
servlet-3.0
void
hateoas
coldfusion-7
hornetq
jericho-html-parser
textkit
vine
robocode
searchkick
belongs-to
cpu-speed
left-recursion
dmp
dache
sgml
broadcasting
edit-in-place
goinstant
sql-server-2012-web
leptonica
multiple-login
lame
manage.py
digital-design
objcmongodb
arbor.js
gdataxml
javascriptserializer
xgettext
scrollto
gjs
isolatedstorage
visual-web-gui
throttling
webkit-transform
easygui
smooth
zend-form-element
gwt-2.2-celltable
windows-controls
economics

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