angulardart_compiler 3.0.9 copy "angulardart_compiler: ^3.0.9" to clipboard
angulardart_compiler: ^3.0.9 copied to clipboard

[pending analysis]

Compiler for AngularDart.

AngularDart Compiler banner

pub package

AngularDart Compiler #

Template compiler for AngularDart. Transforms templates into efficient Dart code.

Part of the AngularDart ecosystem.

Overview #

This package provides the template compiler for AngularDart. It transforms AngularDart component templates into efficient Dart code at build time.

What it does #

  • Compiles AngularDart templates to Dart code
  • Generates component factories and dependency injection code
  • Processes @Component, @Directive, and @Pipe annotations
  • Integrates with build_runner for code generation
  • Supports template optimization and tree-shaking

Usage #

This package is typically not used directly. It is a dependency of:

The compiler runs automatically when you use build_runner:

dart run build_runner build

How it works #

  1. Template parsing - Parses HTML templates into an AST (using angulardart_ast)
  2. Code generation - Generates Dart code for component views
  3. DI generation - Generates dependency injection code
  4. Optimization - Optimizes generated code for performance

Documentation #

Requirements #

  • Dart SDK >= 3.0.0

License #

MIT License