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

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
Does angular-cli uses rollup to do ahead-of-time compilation and adding all into one file?
Angular CLI install error
Using glob for assets in angular-cli throws error
Importing Global SCSS into Component SCSS with Angular-CLI
Error during AOT build with angular-cli 24 and Angular 2.4.1

Categories

HOME
caching
raspbian
ubuntu-16.04
otrs
mapbox-gl-js
ubuntu-12.04
chaiscript
apache2
vlc
wampserver
console
spring-cloud-contract
proguard
outlook-web-addins
local
jacoco
ida
scala-native
uicollectionview
rhapsody
alfresco-share
flat-file
koa
deb
onsen-ui
header-files
badge
data-cleansing
java-ee-7
emv
metadata-extractor
web-frontend
frp
bitcoin-testnet
positioning
autofill
viewstate
pox
rider
issue-tracking
fltk
mediawiki-extensions
median
context-free-language
windows-firewall
pinvoke
applepayjs
openh264
typhoon
galleriffic
vst
aescryptoserviceprovider
webkit2
multiple-file-upload
qregexp
spatial-query
mongo-c-driver
search-regex
twgl.js
altbeacon
anythingslider
calibration
sysctl
left-recursion
ibmsbt
em
argument-passing
joox
internal
healthvault
visual-studio-2003
snapjs
dynamic-data
lync-server-2010
autostart
file-exists
smooth
for-xml-path
ruby-debug
recordset
revert
camtasia
swfloader
database-diagramming

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