angular/packages/compiler-cli/src/ngtsc/annotations/component
Kristiyan Kostadinov bb863ee0db refactor(compiler): consolidate combined recursive visitors (#61158)
We have several cases where we need a visitor that traverses both the template and expression ASTs fully. Currently we're re-implementing the visitor each time which means that we need to update multiple visitors every time something changes.

These changes add a single base class that we can reuse to simplify such cases in the future.

PR Close #61158
2025-05-08 07:11:36 +02:00
..
src refactor(compiler): consolidate combined recursive visitors (#61158) 2025-05-08 07:11:36 +02:00
test refactor(compiler-cli): add flag to enable selectorless (#60977) 2025-04-24 13:02:39 -07:00
BUILD.bazel feat(compiler-cli): generate the HMR replacement module (#58205) 2024-10-16 07:22:45 +00:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
README.md refactor(compiler-cli): split the 'annotations' package into sub-packages (#44812) 2022-02-03 08:55:25 -08:00

What is the 'annotations/component' package?

This package implements the ComponentDecoratorHandler, which processes and compiles @Component-decorated classes.

Component compilation is complex, and so not only is this package split out from the parent 'annotations' package, but its functionality is divided into separate files. In Angular, the concept of a component is an extension of a directive, so much of the component compilation functionality is shared with directive compilation, and is imported from the 'annotations/directive' package.