From the course: Angular Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Application environments and build targets

Application environments and build targets - Angular Tutorial

From the course: Angular Essential Training

Application environments and build targets

- [Instructor] Angular lets you define something called a build target, which lets you change the configuration and optimization of your code depending on where you want to deploy it. Build targets use something called an application environment to modify values used in your code without the need for conditional logic. All Angular developers should know how to work with application environments and build targets. I opened our project here in a GitHub code space. I talk about why we use code spaces earlier in this course. So for now, just think of them as an easy way to share and write code without installing anything on your local machine. I'll go to the source folder, environments, and click on environments dot ts. This is the application environment for our production builds. This is also this environment dot development dot ts file, which is for our development builds. Each file exports a single variable called…

Contents