angular/packages/compiler/test/render3
leonsenft d596d8bd0a refactor(compiler): support matching and validating foreign components in templates (#68674)
We extract the identifier name from the `foreignImports` expression in
`ComponentDecoratorHandler` and use a `SelectorlessMatcher` to match element
tags against these names. If an element matches both a regular Angular
directive and a foreign component, a conflict error is thrown.

In addition, we implement strict template semantic validation for these matched
foreign components within `TemplateSemanticsChecker`. Elements matched as
foreign components only support static attributes and property bindings. Any
event bindings, template references, or non-property input bindings (e.g.
class, style, or attribute bindings) trigger a semantic error diagnostic.

Finally, we skip standard DOM schema checks for foreign components to prevent spurious
validation errors since foreign components are not defined in standard HTML schemas.

PR Close #68674
2026-05-19 13:42:10 -07:00
..
util feat(compiler): Exhaustive checks for switch blocks 2026-02-17 10:25:31 -08:00
view refactor(compiler): support matching and validating foreign components in templates (#68674) 2026-05-19 13:42:10 -07:00
BUILD.bazel refactor(compiler): remove zone-based testing utilities 2026-02-09 07:55:12 -08:00
r3_ast_absolute_span_spec.ts build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
r3_ast_spans_spec.ts fix(compiler): let declaration span not including end character 2026-04-27 17:09:14 -07:00
r3_ast_visitor_spec.ts fix(compiler): prevent mutation of children array in RecursiveVisitor 2026-03-04 14:41:32 -08:00
r3_template_transform_spec.ts fix(compiler): type check invalid for loops 2026-05-13 11:26:42 -07:00
README.md build: format md files 2025-11-06 10:03:05 -08:00
style_parser_spec.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00

Tests in this directory are excluded from running in the browser and only run in node.