What are the two phases of AOT?
The AOT compiler works in three phases,
- Code Analysis: The compiler records a representation of the source
- Code generation: It handles the interpretation as well as places restrictions on what it interprets.
- Validation: In this phase, the Angular template compiler uses the TypeScript compiler to validate the binding expressions in templates.
February 22, 2022