In this section, without going into deep technical details, we'll briefly explain what AOT compilation is in the context of Angular and what implication it may have on our projects.
The key focus in Angular is its extremely fast change detection mechanism. After exploring different options for detecting changes in the view model, the Angular team discovered that the change detection mechanism used in AngularJS can be improved dramatically using code generation. It turned out that it is possible to generate well-optimized code for the JavaScript virtual machine, which performs change detection and efficient rendering. After a lot of benchmarks, Google found out that this strategy is much more performant compared to the traditional (also known as dynamic) change detection mechanism.