mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| README.md | ||
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.