How to Configure and build angular application for multiple environments?

ng build --prod
Generated content by ng build.
Custom Environments Files
Multi environment in angular.json
import { environment } from 'src/environments/environment';
app.component.ts
ng build --configuration qa
ng serve locally for custom environments
ng serve --configuration dev1
Running application result

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Prashant Gangwar

Prashant Gangwar

Technical Lead focused on backend services, micro services, enthusiastic for new tech skills