Compilation options for Angular applications

I am sure by now you are aware that all the code we write for Angular is in TypeScript and that we will need to compile and generate deployable files using the ng command: ng build. This command will generate the corresponding equivalent JavaScript code that can just be copied into the environment we are trying to deploy.

Deploying Angular applications is very simple and easy. In real-time scenarios, the build and deploy commands are integrated into the build pipelines. A common practice is to have a single Angular project running in one repository. However, we can also run multiple projects in a single repository. 

In this section, we will first learn about various compilation options we can consider for the deployment of our Angular applications. In the sections to follow, we will learn how to deploy a standalone application and also how to deploy composite Angular applications. Before we learn how to deploy our app, it's important to understand what happens when we build the application source code.

Angular has two compilation options, which are applied based on the commands and meta flags we use:

  • Just-in-time compilation
  • Ahead-of-time compilation
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.191.22