respond
respond copied to clipboard
Angular is running in the development mode?
I've got the following text in the browser developer console:
Angular is running in the development mode. Call enableProdMode() to enable the production mode.
In my .env, I've set APP_ENV=production and APP_DEBUG=false. Is Angular to be supposed to run in development mode and not in production mode, and if yes, for what reason(s)?
I am hoping this is one of those Angular oddities that is fixed as the Angular CLI matures. Right now, you have to enable prod mode in code. By enabling it, you potentially suppress some binding errors. So, it would have to be done before release. It would be nice if "ng build --prod" would just take care of this, but it doesn't right now. So, for the short term I have opted to not enable prod mode in the app.
Okay, cool! Thank you very much for the explanation :-) (feel free to close or keep it open if you want to track it.)
I will keep it open for now. I am going to do some more research around this.