Build & delivery

Angular compilation

Inspect the TypeScript and template input, compiler diagnostics, and generated component instructions.

Angular 22.3.2 · trace
Lesson flow Source. Compiler. Builder. Output.
Source
Compiler
Builder
Output

Objective

Follow a template through Angular AOT and compare it with the same component compiled in the browser.

Transcript

Angular 22.3.2

  1. Angular reads the TypeScript component and analyzes its template and bindings. With strict template checks, a read from a missing property can stop the build.
  2. The AOT compiler emits the component factory and template function before the browser loads the page. This capture includes the creation and update instructions for a counter.
  3. In the controlled JIT build, the bundle retains Angular component metadata and includes the runtime compiler. Angular compiles the template in the browser as the component is used.
  4. The application builder bundles the program after compilation and emits JavaScript for the entry point and lazy details module. Generated Angular instructions are internal and may change between versions.

Sources