angular/packages/core/src/render3
Kristiyan Kostadinov 97eea8d50e 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
..
debug refactor: fix a number of typos throughout the codebase (#55018) 2024-03-27 10:54:31 -07:00
deps_tracker feat(core): show runtime error for orphan component rendering (#52061) 2023-10-10 15:30:26 -07:00
features refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
i18n fix(core): prevent i18n hydration from cleaning projected nodes (#54823) 2024-03-29 09:35:43 -07:00
instructions fix(core): resolve error for multiple component instances that use fallback content (#55478) 2024-04-25 09:04:01 -07:00
interfaces refactor(core): add i18n AST to prepare for hydration (#54724) 2024-03-07 11:00:36 -08:00
jit fix(compiler): output input flags as a literal (#55215) 2024-04-04 11:13:52 -07:00
reactivity docs: Use new Urls to drop the docs url mapper (#55043) 2024-04-09 12:23:09 -07:00
styling refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
util Revert "refactor(core): Ensure DOM removal happens when no app views need refresh (#55132)" (#55524) 2024-04-24 16:35:57 -07:00
after_render_hooks.ts Revert "refactor(core): Omit listeners from out-of-zone scheduling when using ZoneJS (#55492)" (#55524) 2024-04-24 16:35:57 -07:00
apply_value_input_field.ts refactor(core): move input signals into own directory (#54200) 2024-02-01 15:58:50 +00:00
assert.ts refactor: fix a number of typos throughout the codebase (#52249) 2023-10-25 16:51:24 -07:00
bindings.ts refactor(core): Improve ExpressionChangedAfterItHasBeenCheckedError (#50286) 2023-05-16 09:24:51 -07:00
CODE_GEN_API.md refactor(ivy): Move instructions back to ɵɵ (#30546) 2019-05-20 16:37:47 -07:00
collect_native_nodes.ts refactor(core): Remove LContainerFlags.HasChildViewsToRefresh (#53715) 2024-01-03 13:01:35 -08:00
component.ts docs: Use new Urls to drop the docs url mapper (#55043) 2024-04-09 12:23:09 -07:00
component_ref.ts Revert "refactor(core): Omit listeners from out-of-zone scheduling when using ZoneJS (#55492)" (#55524) 2024-04-24 16:35:57 -07:00
context_discovery.ts refactor(core): Replay events from the event contract using the dispatcher. (#55467) 2024-04-23 16:08:36 -07:00
definition.ts docs: Use new Urls to drop the docs url mapper (#55043) 2024-04-09 12:23:09 -07:00
definition_factory.ts refactor(compiler): move factory out of injector definition (#41022) 2021-03-08 15:31:30 -08:00
di.ts refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
di_setup.ts feat(devtools): create profiler for DI and injector events (#48639) 2023-08-01 11:44:40 -07:00
errors.ts refactor(core): Improve NG100 (#50391) 2023-05-23 15:31:17 +00:00
errors_di.ts refactor(core): Guard assertion with ngDevMode (#53764) 2024-02-01 19:28:08 +00:00
fields.ts feat(core): introduce concept of DestroyRef (#49158) 2023-02-28 11:52:09 -08:00
global_utils_api.ts feat(core): introduce getDirectiveMetadata global debugging utility (#41525) 2021-04-13 16:06:32 -07:00
hooks.ts refactor: move signals code into primitives package (#51986) 2023-10-06 15:12:00 -07:00
index.ts refactor(core): break circular dependencies in preparation for queries as signals (#54103) 2024-02-06 15:04:36 +00:00
list_reconciliation.ts refactor(core): warn about duplicated keys when using built-in @for (#55243) 2024-04-19 06:28:58 -07:00
local_compilation.ts refactor(core): print the errors related to computing component dependencies to the console in local compilation mode (#51824) 2023-09-20 12:25:40 +02:00
metadata.ts refactor(core): delay applying component metadata until it's needed in tests (#52708) 2023-11-09 16:58:06 +00:00
namespaces.ts refactor(core): remove several private utils and APIs (#48357) 2022-12-05 14:35:08 -08:00
ng_module_ref.ts docs: Use new Urls to drop the docs url mapper (#55043) 2024-04-09 12:23:09 -07:00
node_assert.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
node_manipulation.ts Revert "refactor(core): Ensure DOM removal happens when no app views need refresh (#55132)" (#55524) 2024-04-24 16:35:57 -07:00
node_manipulation_i18n.ts refactor(core): remove assumptions that component will be first in directives list (#47490) 2022-09-21 10:05:32 +02:00
node_selector_matcher.ts refactor(core): restructure logic in isCssClassMatching function (#54800) 2024-03-12 14:05:16 -07:00
PERF_NOTES.md docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00
pipe.ts refactor(compiler): Fix pipeBinding variable offsets in template pipeline (#51961) 2023-10-02 16:58:03 -07:00
profiler.ts perf(core): add private hooks around user code executed by the runtime (#41255) 2021-04-02 10:34:23 -07:00
pure_function.ts fix(core): Store the currently selected ICU in LView (#38345) 2020-08-10 12:41:17 -07:00
query.ts fix(core): do not crash for signal query that does not have any matches (#54353) 2024-02-09 14:59:51 +00:00
query_reactive.ts fix(core): return the same children query results if there are no changes (#54392) 2024-02-12 08:48:29 -08:00
queue_state_update.ts refactor(core): avoid additional closure for queued microtask callback (#54801) 2024-03-11 08:59:55 -07:00
reactive_lview_consumer.ts refactor(core): Do not refresh view if producers did not actually change (#52476) 2023-11-02 13:23:49 -07:00
scope.ts refactor(core): flatten and resolve ng-module bootstrap info in local compilation mode (#51767) 2023-09-18 16:59:55 +02:00
state.ts fix(core): Prevent markForCheck during change detection from causing infinite loops (#54900) 2024-03-18 16:54:01 -07:00
STORING_METADATA_IN_D.TS.md docs: convert the last my-app components to app-root (#42256) 2021-05-25 22:13:36 +00:00
tokens.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
TREE_SHAKING.md
VIEW_DATA.md fix(compiler): generate less code for advance instructions (#53845) 2024-01-09 12:27:58 -08:00
view_engine_compatibility_prebound.ts feat(core): add support for Types in ViewContainerRef.createComponent (#43022) 2021-09-29 13:49:13 -07:00
view_manipulation.ts refactor(core): allow passing an environment injector while creating a view (#54903) 2024-03-18 16:37:35 -07:00
view_ref.ts Revert "refactor(core): Omit listeners from out-of-zone scheduling when using ZoneJS (#55492)" (#55524) 2024-04-24 16:35:57 -07:00