I was reading related questions and I found this one, but my question is how can I switch from development to production mode. There are some differences between the modes w
For those doing the upgrade path without also switching to TypeScript use:
ng.core.enableProdMode()
For me (in javascript) this looks like:
var upgradeAdapter = new ng.upgrade.UpgradeAdapter(); ng.core.enableProdMode() upgradeAdapter.bootstrap(document.body, ['fooApp']);