d3705b3284
Currently `NgTemplateOutlet` recreates its view if its template is swapped out or a context object with a different shape is passed in. If an object with the same shape is passed in, we preserve the old view and we mutate the previous object. This mutation of the original object can be undesirable if two objects with the same shape are swapped between two different template outlets. The current behavior is a result of a limitation in `core` where the `context` of an embedded view is read-only, however a previous commit made it writeable. These changes resolve the context mutation issue and clean up a bunch of unnecessary logic from `NgTemplateOutlet` by taking advantage of the earlier change. Fixes #24515. PR Close #40360 |
||
---|---|---|
.. | ||
directives | ||
i18n | ||
location | ||
pipes | ||
BUILD.bazel | ||
cookie_spec.ts | ||
spies.ts | ||
viewport_scroller_spec.ts |