How to easily add environment variables to an Angular application
This guide assumes that you already have an angular application set up by ng create
and are using Angular CLI for
compilation.
Other guides that I've read rely upon re-writing your environments/environment.ts|environment.prod.ts
files
with each compilation. I find this to be completely unnecessary when angular's internal use of webpack
can just
be extended to include environment variables.