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
When ng build command is used it overwrite environment.ts file
By default when ng build command is used it set dev environment
In order to use production environment, use following command ng build --env=prod
This will enable production mode and automatically update environment.ts file