angular/packages/compiler/src
Kristiyan Kostadinov a5c57c7484 fix(core): resolve error for multiple component instances that use fallback content (#55478)
Currently fallback content for `ng-content` gets declared and rendered out in one go. This breaks down if multiple instances of the same component are used where one doesn't render the fallback content while the other one does, because the `TNode` for the content has to be created during the first creation pass.

These changes resolve the issue by always _declaring_ the template, but only rendering it if the slot is empty.

Fixes #55466.

PR Close #55478
2024-04-25 09:04:01 -07:00
..
expression_parser refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
i18n refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
ml_parser refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
output refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
render3 refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
schema refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
template/pipeline fix(core): resolve error for multiple component instances that use fallback content (#55478) 2024-04-25 09:04:01 -07:00
template_parser refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
assertions.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
chars.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
compiler.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
compiler_facade_interface.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
config.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
constant_pool.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
core.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
injectable_compiler_2.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
jit_compiler_facade.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
parse_util.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
resource_loader.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
selector.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
shadow_css.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
style_url_resolver.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
util.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00