angular/packages/compiler/test
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
..
expression_parser fix(compiler): throw on invalid in expressions 2026-02-23 13:35:07 -08:00
i18n build: update Jasmine to 6.0.0 2026-02-09 12:15:57 -08:00
ml_parser fix(compiler): let declaration span not including end character 2026-04-27 17:09:14 -07:00
output refactor(compiler): clean up unused parameter 2026-03-18 14:05:18 -06:00
render3 refactor(compiler): support matching and validating foreign components in templates (#68674) 2026-05-19 13:42:10 -07:00
schema fix(core): support prefix-insensitive DOM schema lookups and compile-time i18n attribute validation 2026-05-19 13:00:32 -07:00
selector refactor(compiler): remove zone-based testing utilities 2026-02-09 07:55:12 -08:00
shadow_css fix(compiler): simplify handling of colon host with a selector list 2026-05-12 14:25:46 -07:00
BUILD.bazel test(compiler): remove zone-based testing utilities 2026-02-05 16:56:55 -08:00
compiler_facade_interface_spec.ts docs: set syntax highlighting of code examples MD code blocks (#59026) 2024-12-04 17:30:28 +01:00
integration_spec.ts test(compiler): remove zone-based testing utilities 2026-02-05 16:56:55 -08:00
style_url_resolver_spec.ts refactor(compiler): convert scripts within packages/compiler to relative imports (#60625) 2025-04-01 11:57:53 +00:00
util_spec.ts refactor(compiler): remove unused code (#61668) 2025-05-26 12:21:09 +00:00