Configure and build Angular application for different environments
By default Angular application can be built to
development environment or to
production environment. Based on target environment, your application might have different setup. For example, API URL to fetch data from server.
You can build your application in production mode by running command:
ng build --prod
When application is built for production mode then
environments/environment.ts file gets replaced with…